Example #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);
    }
Example #2
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onLevelSpawn.Unsubscribe(SpawnSteps);
     _onLevelEnd.Unsubscribe(RespawnSteps);
     _onGameStart.Unsubscribe(StartGame);
 }
Example #3
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onQuitEvent.Unsubscribe(SaveMeshes);
     _onPlayerMaterialReward.Unsubscribe(AddMeshToPlayer);
     _currentMesh.onValueChanged -= SaveMeshes;
     _currentMesh.onValueChanged -= ResetStepMaterial;
 }
Example #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);
    }
Example #5
0
 private void OnDisable()
 {
     _onLevelEnd.Unsubscribe(EnableBalloonDestroy);
 }
Example #6
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onGameOver.Unsubscribe(GetReward);
     _onQuit.Unsubscribe(SaveScore);
 }
Example #7
0
 private void OnDisable()
 {
     _onLevelEnd.Unsubscribe(LevelEnd);
 }
Example #8
0
 private void OnDisable()
 {
     _onRestart.Unsubscribe(Restart);
 }
Example #9
0
 private void OnDisable()
 {
     _levelProgress.onValueChanged -= UpdateLevelProgressBar;
     _onLevelSuccess.Unsubscribe(Hide);
 }
Example #10
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onRestart.Unsubscribe(Restart);
 }
Example #11
0
 private void OnDisable()
 {
     _onPlayerAttackBegin.Unsubscribe(SlowDownAnimation);
     _onPlayerAttackEnd.Unsubscribe(FasterAnimation);
 }