Example #1
0
 protected virtual void OnEnable()
 {
     StateSyncManager.Register(this);
 }
Example #2
0
 protected virtual void OnDisable()
 {
     StateSyncManager.Unregister(this);
 }
Example #3
0
 protected virtual void Awake()
 {
     _uniqueId = StateSyncManager.GetUniqueId();
     _rb       = GetComponent <Rigidbody>();
     Debug.Assert(Prefab != SyncObject.None);
 }