/// <summary> /// Stop listening only if the client isn't the server /// </summary> /// <param name="client"></param> public override void OnStartClient(NetworkClient client) { base.OnStartClient(client); if (networkDiscovery.isClient) { networkDiscovery.StopListening(); } }
/// <summary> /// Create internet match /// </summary> public void HostInternetGame() { networkManager.StartMatchMaker(); networkManager.matchMaker.CreateMatch(roomNameText.text, 16, true, "", "", "", 0, 0, networkManager.OnMatchCreate); networkDiscovery.StopListening(); }