예제 #1
0
    public void OnRegisterButtonSubmit()
    {
        string playerName     = nameInputField.text;
        string playerEmail    = emailInputField.text;
        string playerPassword = passwordInputField.text;

        if (playerName == "")
        {
            playerName = gameManager.playerInfo.DefaultPlayerName;
        }
        else
        {
            gameManager.playerInfo.PlayerName = playerName;
        }

        backendManager.Register(playerName, playerEmail, playerPassword);
    }