Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 protected virtual void Awake()
 {
     SyncGameObject = GetComponent <SyncGameObject>();
 }
Exemplo n.º 3
0
 void Awake()
 {
     SyncGameObject = GetComponent <SyncGameObject>();
     Rigidbody      = GetComponent <Rigidbody>();
 }