private void Awake() { web = GameObject.FindObjectOfType <API_Web>(); webG = GameObject.FindObjectOfType <API_Game>(); profile = GameObject.FindObjectOfType <Edit_Profile>(); backBtn.onClick.AddListener(PreBack); }
private void Awake() { web = GameObject.FindObjectOfType <API_Web>(); player = SaveSystem.A_LoadSaveGame(); LoadPet(); playerNameTxt.text = PlayerPrefs.GetString("slug"); playerCoin.text = player.coin.ToString(); StartCoroutine(GetTexture(web.m_ViewProfile.user.profile.pic, profileImage)); }
void Awake() { if (API_Web.Ins != null && API_Web.Ins != this) { DestroyImmediate(this.gameObject); return; } instance = this; DontDestroyOnLoad(this.gameObject); }
private void Awake() { web = GameObject.FindObjectOfType <API_Web>(); webG = GameObject.FindObjectOfType <API_Game>(); StartCoroutine(GetTexture(web.m_ViewProfile.user.profile.pic, profileImage)); loguotBtn.onClick.AddListener(PreLogout); homeBtn.onClick.AddListener(GotoMainScene); createPetBtn.onClick.AddListener(CreateNewPet); nameText.text = web.m_ViewProfile.user.profile.slug; LoadItem(); }
// Start is called before the first frame update void Start() { web = GameObject.FindObjectOfType <API_Web>(); webG = GameObject.FindObjectOfType <API_Game>(); loginBtn.onClick.AddListener(Login); registerBtn.onClick.AddListener(Register); if (PlayerPrefs.HasKey("token")) { Result(""); } }