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); } }
protected virtual void Awake() { SyncGameObject = GetComponent <SyncGameObject>(); }
void Awake() { SyncGameObject = GetComponent <SyncGameObject>(); Rigidbody = GetComponent <Rigidbody>(); }