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