public void OnAddPlayerButton() { if (DataHelper.IsPlayerNicknameCorrect(nicknameField.text)) { nicknameField.interactable = false; ClientSend.AddNewPlayer(nicknameField.text); } else { NotificationSystem.instance.Notify(NotificationSystem.NotificationTypes.negative, "Невозможно создать персонажа с указанным псевдонимом."); } }