static void HandleOnLogin(Error error, LoginUserResult response) { if (LoginMethodWillComplete != null) { LoginMethodWillComplete(error, response); } Error = error; Response = response; if (error == null) { // Register for push CoroutineHost.Instance.StartCoroutine(RegisterForPush()); } else { Debug.LogError(error.reason); } if (LoginMethodDidComplete != null) { LoginMethodDidComplete(error, response); } }
static void HandleOnLogin(Error error, LoginUserResult response) { if (error == null) { PlayerPrefs.SetString(TokenKey, response.token); UserId = response.id; SubscribeToUsers(); } }
static void HandleOnLogin(Error error, LoginUserResult response) { Error = error; Response = response; if (error == null) { CoroutineHost.Instance.StartCoroutine (RegisterForPush ()); } else { Debug.LogWarning (error.reason); } }
static void HandleOnLogin(Error error, LoginUserResult response) { if (LoginMethodWillComplete != null) { LoginMethodWillComplete (error, response); } Error = error; Response = response; if (error == null) { // Register for push CoroutineHost.Instance.StartCoroutine (RegisterForPush ()); } else { Debug.LogWarning (error.reason); } if (LoginMethodDidComplete != null) { LoginMethodDidComplete (error, response); } }
static void HandleOnLogin(Error error, LoginUserResult response) { if (error == null) { PlayerPrefs.SetString (TokenKey, response.token); UserId = response.id; SubscribeToUsers (); } }