Beispiel #1
0
 void OnDestroy()
 {
     if (_instance == this)
     {
         _instance = null;
         IsReady   = false;
     }
 }
Beispiel #2
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else
     {
         Debug.LogWarning("RMP Network Service instance already exists.");
         Destroy(this);
         return;
     }
 }
Beispiel #3
0
 public void Replicate(RMPPeer to = null)
 {
     RMPNetworkService.Replicate(this, to);
 }