Exemplo n.º 1
0
    public void responseRegister(ExtendedEventArgs eventArgs)
    {
        ResponseRegisterEventArgs args = eventArgs as ResponseRegisterEventArgs;

        if (args.status == 0)
        {
            Constants.USER_ID = args.user_id;
            Debug.Log("Successful registration response: " + args.ToString());
            EditorUtility.DisplayDialog("Registration successful", "You have successfully registered.\nClick Ok to continue execution and see responses on console", "Ok");
        }
        else
        {
            Debug.Log("Registration failed: Username is taken.");
        }
    }
Exemplo n.º 2
0
    public void ResponseRegister(ExtendedEventArgs eventArgs)
    {
        ResponseRegisterEventArgs args = eventArgs as ResponseRegisterEventArgs;

        Debug.Log(args + "Register.cs line 86");
        if (args.status == 0)
        {
            Constants.USER_ID = args.user_id;
            Debug.Log("Successful Register response : " + args.ToString());
            EditorUtility.DisplayDialog("Register Successful", "You have successfully Register.\nClick Ok to continue execution and see responses on console", "Ok");
            SceneManager.LoadScene("Login");
        }
        else
        {
            Debug.Log("Register Failed");
        }
    }