Inheritance: Knetik.KnetikModel
Beispiel #1
0
        public void Logout()
        {
            Username = null;
            Password = null;
            AccessToken = null;
            UserID = 0;
            _userInfo = new UserInfo(this);

            PlayerPrefs.DeleteKey(AccessTokenKey);
            PlayerPrefs.DeleteKey(UserIDKey);
            if(OnLogoutComplete != null)
            {
                OnLogoutComplete();
            }
        }
Beispiel #2
0
        public void Logout()
        {
            Username = null;
            Password = null;
            Session = null;
            UserID = 0;
            _userInfo = new UserInfo(this);

            PlayerPrefs.DeleteKey(SessionKey);
            PlayerPrefs.DeleteKey(UserIDKey);
            PlayerPrefs.DeleteKey(UsernameKey);
            PlayerPrefs.DeleteKey(PasswordKey);
        }