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); }
public void StartMultiplayerHost() { //manager.networkAddress = "localhost"; NetworkingManager.Singleton.StartHost(); MLAPI.Connection.NetworkedClient nc = new MLAPI.Connection.NetworkedClient(); Debug.Log(nc.ClientId); }