示例#1
0
 private void OnDestroy()
 {
     Actors.Unregister(this);
 }
示例#2
0
 private void OnEnable()
 {
     Actors.Register(this);
 }
示例#3
0
 private void OnDisable()
 {
     Actors.Unregister(this);
 }
示例#4
0
 public void OnDead()
 {
     _isAlive = false;
     Actors.Unregister(this);
 }