示例#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);
 }