Exemplo n.º 1
0
 public void onServerButton()
 {
     if (!NetworkClient.active)
     {
         manager.StartServer();
     }
 }
Exemplo n.º 2
0
    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");
        }
    }