Ejemplo n.º 1
0
 public void tryToHost()
 {
     currentName = nameIn.text;
     if (currentName != "")
     {
         net.networkPort = 7777;
         net.StartHost();
         transform.position = new Vector3(10000, 0, 0);
     }
 }
Ejemplo n.º 2
0
 public void Host()
 {
     manager = networkObject.GetComponent <NewNetworkManager>();
     field   = WeaponField.GetComponent <InputField>();
     manager.weaponChoice = field.text;
     field = NameField.GetComponent <InputField>();
     manager.playerName = field.text;
     manager.playerTeam = team;
     manager.StartHost();
 }