Пример #1
0
 internal void Awake()
 {
     if (Singleton != null && Singleton != this)
     {
         Destroy(Singleton);
     }
     Singleton = this;
     view      = GetComponent <NetworkView>();
     if (Network.isServer)
     {
         GadgetCore.CoreLogger.Log("Listening for client connections...");
         IdentifyNewClients();
     }
 }
Пример #2
0
 internal void Awake()
 {
     if (Singleton != null && Singleton != this)
     {
         Destroy(Singleton);
     }
     Singleton = this;
     initiatedClients.Clear();
     view = GetComponent <NetworkView>();
     if (Network.isServer)
     {
         GadgetCore.CoreLogger.Log("Awaiting for client connections...");
     }
 }