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