protected static void StartPcsIfNeeded(UserFile hostPlayer) { if (pcs == null) { UnityEngine.Debug.LogError("STARTING PCS"); pcs = new PeerConnectionServer(PortHelper.GetRandomAvailablePort(), hostPlayer); } }
protected static void StopPcsIfNeeded() { if (pcs != null && !isPcs_Multicast && !isPcs_Broadcast) { UnityEngine.Debug.LogError("STOPPING PCS"); pcs.Stop(); pcs = null; } }