Exemplo n.º 1
0
    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");
        }
    }
Exemplo n.º 2
0
    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);
    }