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(); } }
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); }