public void CreateLobbyButtonClicked() { if (!MenuUtil.IsPlayerNameValid(playerNameInput.text)) { return; } MenuUtil.SaveNameToPlayerPrefs(playerNameInput.text); var networkManager = FindObjectOfType <NetworkManagerHex>(); networkManager.StartHost(); }
private bool IsInputsValid() { return(MenuUtil.IsPlayerNameValid(playerNameInput.text) && MenuUtil.IsValidIPAddress(hostIPInput.text)); }
public void ResetValidityState() { createLobbyButton.interactable = MenuUtil.IsPlayerNameValid(playerNameInput.text); }