Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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...");
     }
 }