Exemple #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);
     }
 }
Exemple #3
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onPlayerSpawn.Unsubscribe(SetTarget);
 }