public void ResponseRegistration(ExtendedEventArgs eventArgs) { ResponseRegistrationEventArgs args = eventArgs as ResponseRegistrationEventArgs; if (args.status == 0) { Constants.USER_ID = args.user_id; Debug.Log("Successful Registration response : " + args.ToString()); SceneManager.LoadScene("Login"); } else { Debug.Log("Registration Failed"); } }
public override ExtendedEventArgs process() { ResponseRegistrationEventArgs args = null; if (status == 0) { args = new ResponseRegistrationEventArgs(); args.status = status; args.username = username; } else { args = new ResponseRegistrationEventArgs(); args.status = status; } return(args); }