コード例 #1
0
 public void setClientAddress(Text inputField)
 {
     //manager.networkAddress = inputField.text.ToString();
     NetworkingManager.Singleton.GetComponent <UnetTransport>().ConnectAddress = inputField.text.ToString();
     MLAPI.Connection.NetworkedClient nc = new MLAPI.Connection.NetworkedClient();
     Debug.Log(nc.ClientId);
 }
コード例 #2
0
 public void StartMultiplayerHost()
 {
     //manager.networkAddress = "localhost";
     NetworkingManager.Singleton.StartHost();
     MLAPI.Connection.NetworkedClient nc = new MLAPI.Connection.NetworkedClient();
     Debug.Log(nc.ClientId);
 }