using UnityEngine; using Game.Data; public class PlayerRuntimeTest : MonoBehaviour { [Header("Fake wallet for test (replace with your wallet connect result)")] public string walletAddress = "runtime_wallet_test_1"; [ContextMenu("Ensure Player Now")] //public async void EnsureNow() //{ // try // { // var rec = await GameDb.EnsurePlayerAsync(walletAddress); // Debug.Log($"[Runtime] ✅ Ensured player: {rec.WalletAddress} kills={rec.TotalKills} currency={rec.InGameCurrency}"); // } // catch (System.Exception e) // { // Debug.LogError($"[Runtime] ❌ Ensure failed: {e.Message}"); // } //} // Optional: auto-run at Start private void Start() { // Comment this if you only want the context menu / UI button // EnsureNow(); } }