Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public void ButtonLogin()
 {
     mErrorText.enabled = false;
     IUSAuthentication.ShowLoginView(OnLoginSuccess);
 }