Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 static void HandleOnLogin(Error error, LoginUserResult response)
 {
     if (error == null)
     {
         PlayerPrefs.SetString(TokenKey, response.token);
         UserId = response.id;
         SubscribeToUsers();
     }
 }
Esempio n. 3
0
        static void HandleOnLogin(Error error, LoginUserResult response)
        {
            Error = error;
            Response = response;

            if (error == null) {
                CoroutineHost.Instance.StartCoroutine (RegisterForPush ());
            } else {
                Debug.LogWarning (error.reason);
            }
        }
Esempio n. 4
0
        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 ();
     }
 }