Пример #1
0
 public static void ListenSyncGameObject(SyncGameObject sync)
 {
     if (!ListenSyncGameObjects.ContainsKey(sync.InstanceID))
     {
         ListenSyncGameObjects.Add(sync.InstanceID, sync);
     }
     else
     {
         Debugger.Warning("[DataEventManager] Already Listen SyncGameObject Instance:" + sync.InstanceID);
     }
 }
Пример #2
0
 protected virtual void Awake()
 {
     SyncGameObject = GetComponent <SyncGameObject>();
 }
Пример #3
0
 void Awake()
 {
     SyncGameObject = GetComponent <SyncGameObject>();
     Rigidbody      = GetComponent <Rigidbody>();
 }