Exemple #1
0
 void IEcsSystem.Destroy()
 {
     _world.OnComponentDetach -= OnComponentDetach;
     _world.UnsubscribeFromEvent <DestroyEvent> (OnDestroyEntity);
     Debug.LogFormat("{0} => destroy", GetType().Name);
 }
Exemple #2
0
 void IEcsSystem.Destroy()
 {
     Debug.LogFormat("{0} => destroy", GetType().Name);
     _world.UnsubscribeFromEvent <ControlEvent> (OnControlEntity);
 }
Exemple #3
0
 void OnDisable()
 {
     _world.UnsubscribeFromEvent <int> (OnScore);
     _world.Destroy();
     _world = null;
 }