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); }