Пример #1
0
        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);
            }
        }
Пример #2
0
 public void ButtonLogin()
 {
     mErrorText.enabled = false;
     IUSAuthentication.ShowLoginView(OnLoginSuccess);
 }