public void onServerButton() { if (!NetworkClient.active) { manager.StartServer(); } }
public void ValidatePassword() { string password = passwordInputField.text; if (password == "psi-inf") { networkManager.StartServer(); //GameObject.Find("ServerManager").transform.Find("ServerCamera").gameObject.SetActive(true); //GameObject.Find("ServerManager").transform.Find("ServerControlerUI").gameObject.SetActive(true); gameObject.SetActive(false); } else { Debug.Log("senha incorreta"); } }