using System; using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; using UnityEngine; using UnityEngine.UI; public class InitInfo : MonoBehaviour { private MainObject parsedData; public Text name; public Text userid; // Start is called before the first frame update private async void Start() { //string response = await web.SendRequest("http://47.109.133.52/Player/GetInfo", "POST"); //Debug.Log(response); //parsedData = JsonUtility.FromJson(response); //Debug.Log(parsedData.Info.Gold); //Promptmgr.assestPanel.SetCoinText(parsedData.Info.Gold); //Promptmgr.assestPanel.SetStoneText(parsedData.Info.Gem); //name.text = parsedData.Info.Name; //userid.text = "id :" + parsedData.Info.Id; //if (itemList.List == null) //{ // Debug.Log("list¿Õ"); // //Debug.Log(rootData.); //} // Debug.Log(rootData.Info.Id); } // Update is called once per frame void Update() { } } public class MainObject { public Info Info; public int ErrorCode; public string ErrorMessage; } [Serializable] public class Info { public string Id; public int Gold; public int Gem; public string Phone; public string Name; } [System.Serializable] public class PlayerData { public string Id; public string Name; public float Gold; public string Phone; public float Level; public object IslandId; public object IsLocked; public object IsCanceled; public object Referrer; public object Referrals; public object Gem; public object Ore; public object Forge; public object FirstBlood; public object LoginCount; public object TeamLevel; public object Contribution; public object Stamina; public object TreeLevel; public object TreeExp; public object Water; public object CreateDateTime; } [Serializable] public class InfoData { public string Id; public string Name; public float Gold; public float Gem; public float Ore; public float Forge; public float Water; public int Level; } [Serializable] public class infopyler { public InfoData Info; public int ErrorCode; public string ErrorMessage; } [System.Serializable] public class RootData { public PlayerData[] List; public object Info ; public int Stamina; public int Count; public int ErrorCode; public string ErrorMessage; }