Пример #1
0
 private void OnDisable()
 {
     Actors.Unregister(this);
 }
Пример #2
0
 private void OnDestroy()
 {
     Actors.Unregister(this);
 }
Пример #3
0
 /// <summary>
 /// Notified by components that the actor is no longer alive.
 /// </summary>
 public void OnDead()
 {
     _isAlive = false;
     Actors.Unregister(this);
 }