public void OnEGLoginFailed(string errorMessage) #endif { PopupNetworkLoading.DestroyPopup(); MessagePopup.Create(Localization.instance.Get("LoginFailMessage")); Debug.LogWarning(errorMessage); }
public void OnLoginSuccess(string idToken) #endif { PopupNetworkLoading.DestroyPopup(); PlayerPrefs.SetInt("login", 1); string[] strs = idToken.Split(" ".ToCharArray()); string id = strs[0]; string token = strs[1]; Debug.Log("Login success! userName = "******" AccessToken = " + token); GameManager.instance.m_userName = id; GameManager.instance.m_accessToken = token; PlayerPrefs.SetString("UID", id); GameManager.instance.m_EntryClient.IssueConnect(); }