private void OnDisable() { Actors.Unregister(this); }
private void OnDestroy() { Actors.Unregister(this); }
/// <summary> /// Notified by components that the actor is no longer alive. /// </summary> public void OnDead() { _isAlive = false; Actors.Unregister(this); }