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