public void StartHosting() { if (verboseLogging) { Debug.Log("#CaptainsMess# StartHosting"); } // Stop the broadcast server so we can start a regular hosting server StopServer(); // Delay briefly to let things settle down CancelInvoke("StartHostingInternal"); Invoke("StartHostingInternal", 0.5f); discoveryServer.isOpen = true; discoveryServer.RestartBroadcast(); }
public void StartHosting() { if (verboseLogging) { Debug.Log("Host"); } //ブロードキャストサーバーを停止して、通常のホスティングサーバーを起動できるようにする StopServer(); // 処理の問題で少し遅らせる CancelInvoke("StartHostingInternal"); Invoke("StartHostingInternal", 0.5f); discoveryServer.isOpen = true; discoveryServer.RestartBroadcast(); }