public void ButtonUpdateName()
 {
     if (nickNameInputField.text != "" && nickNameInputField.text != null)
     {
         PlayerPrefsSaveSystem.SetPlayerName(nickNameInputField.text);
     }
     else
     {
         Toast.MakeText(EnumToast.Debug, "Enter your name!");
     }
     AudioManager.PlaySFX(EnumAudioId.Button);
 }
Пример #2
0
 public void ButtonUpdateNickName()
 {
     if (nicknameInputField.text != "" && nicknameInputField.text != null)
     {
         PlayerPrefsSaveSystem.SetPlayerName(nicknameInputField.text);
         UIManager.FlushPanel();
     }
     else
     {
         Toast.MakeText(EnumToast.Debug, "Enter a valid name!");
     }
 }