Exemplo n.º 1
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onLevelSpawn.Unsubscribe(SpawnSteps);
     _onLevelEnd.Unsubscribe(RespawnSteps);
     _onGameStart.Unsubscribe(StartGame);
 }
 private void OnDisable()
 {
     if (TransformEvent)
     {
         TransformEvent.Unsubscribe(Align);
     }
 }
Exemplo n.º 3
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onPlayerSpawn.Unsubscribe(SetTarget);
 }