Ejemplo n.º 1
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _onQuitEvent.Unsubscribe(SaveMeshes);
     _onPlayerMaterialReward.Unsubscribe(AddMeshToPlayer);
     _currentMesh.onValueChanged -= SaveMeshes;
     _currentMesh.onValueChanged -= ResetStepMaterial;
 }
Ejemplo n.º 2
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);
    }
Ejemplo n.º 3
0
 private void OnDisable()
 {
     _onEnemyArrest.Unsubscribe(ArrestEnemies);
 }
Ejemplo n.º 4
0
 private void OnDisable()
 {
     _onStepDestroyEvent.Unsubscribe(OnStepDestroy);
 }
Ejemplo n.º 5
0
 private void OnDisable()
 {
     _onPlatformEnd.Unsubscribe(MoveToNextPlatform);
 }