Esempio n. 1
0
    private void OnDisable()
    {
        _onPlayerAttackEnd.Unsubscribe(SlowDownAnimation);
        _onPlayerAttackEnd.Unsubscribe(FasterAnimation);
        _onWrongTarget.Unsubscribe(ScaleHead);
        _onWrongTarget.Unsubscribe(CheckGameOver);
        _onGameOver.Unsubscribe(GameOver);

        _onLevelEnd.Unsubscribe(LevelEnd);
        _onGameStart.Unsubscribe(Run);
    }
Esempio n. 2
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onLevelSpawn.Unsubscribe(SpawnSteps);
     _onLevelEnd.Unsubscribe(RespawnSteps);
     _onGameStart.Unsubscribe(StartGame);
 }
Esempio n. 3
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onQuitEvent.Unsubscribe(SaveMeshes);
     _onPlayerMaterialReward.Unsubscribe(AddMeshToPlayer);
     _currentMesh.onValueChanged -= SaveMeshes;
     _currentMesh.onValueChanged -= ResetStepMaterial;
 }
Esempio n. 4
0
    protected override void OnDisable()
    {
        base.OnDisable();
        _currentScore.onValueChanged -= UpdateCurrentScore;
        _bestScore.onValueChanged    -= UpdateMaxScore;

        _currentLevel.onValueChanged -= UpdateCurrentLevel;
        _nextLevel.onValueChanged    -= UpdateNextLevel;

        _currentStep.onValueChanged -= UpdateStep;
        _totalSteps.onValueChanged  -= UpdateStep;

        _onGameOverEvent.Unsubscribe(ShowLevelEnd);
        _onNewPlayerItemReward.Unsubscribe(ShowRewardPopup);
    }
Esempio n. 5
0
 private void OnDisable()
 {
     _onLevelEnd.Unsubscribe(EnableBalloonDestroy);
 }
Esempio n. 6
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onGameOver.Unsubscribe(GetReward);
     _onQuit.Unsubscribe(SaveScore);
 }
Esempio n. 7
0
 private void OnDisable()
 {
     _onLevelEnd.Unsubscribe(LevelEnd);
 }
Esempio n. 8
0
 private void OnDisable()
 {
     _onRestart.Unsubscribe(Restart);
 }
Esempio n. 9
0
 private void OnDisable()
 {
     _levelProgress.onValueChanged -= UpdateLevelProgressBar;
     _onLevelSuccess.Unsubscribe(Hide);
 }
Esempio n. 10
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onRestart.Unsubscribe(Restart);
 }
Esempio n. 11
0
 private void OnDisable()
 {
     _onPlayerAttackBegin.Unsubscribe(SlowDownAnimation);
     _onPlayerAttackEnd.Unsubscribe(FasterAnimation);
 }