Ejemplo n.º 1
0
        public void OnSuccess(object response)
        {
            User user = (User)response;

            App42Log.Console("userName is " + user.GetUserName());
            App42Log.Console("emailId is " + user.GetEmail());
            MultiplayerManager.connectToWarp(user.GetUserName());
            PlayerPrefs.SetString("username", user.GetUserName());
            //	REGISTER SUCCESSFUL
            RegisterResultScreen.setRegResult(0);
        }
Ejemplo n.º 2
0
 public void OnException(Exception e)
 {
     if (e.ToString().Contains("already exists"))
     {
         LogManager.Log("User already exists");
         RegisterResultScreen.setRegResult(1);
     }
     else if (e.Message.Contains("EmailAddress is Not Valid"))
     {
         LogManager.Log("EmailAddress is Not Valid");
         RegisterResultScreen.setRegResult(2);
     }
     else
     {
         App42Log.Console("Exception : " + e);
     }
 }