public static void LogOut() { StopAllCalls(); mToken = null; PlayerPrefs.DeleteAll(); PlayerPrefs.Save(); if (OnLogOut != null) { OnLogOut(); } else { Debug.LogWarning("OnNeedLogIn not handled"); } if (Application.isEditor) { OnLogOutDone(); } else { IUSAuthentication.LogOut(OnLogOutDone); } }
public void ButtonLogin() { mErrorText.enabled = false; IUSAuthentication.ShowLoginView(OnLoginSuccess); }