public void Initialize(AudioSource newAudioSource, OptionsGUIController.Difficulty difficulty) { SetDifficulty (difficulty); audioSource = newAudioSource; bTracker = new Queue<BeatInstant> (); dTracker = new Queue<BeatInstant> (); cameraTracker = new Queue<BeatInstant> (); songQuadrants = new Stack<int> (); ComboCount = 0; }
public void SetDifficulty(OptionsGUIController.Difficulty newDifficulty) { difficulty = newDifficulty; switch (difficulty) { case OptionsGUIController.Difficulty.Easy: BEAT_WINDOW_TOLERANCE = EASY; break; case OptionsGUIController.Difficulty.Medium: BEAT_WINDOW_TOLERANCE = MEDIUM; break; case OptionsGUIController.Difficulty.Hard: BEAT_WINDOW_TOLERANCE = HARD; break; } }
private void SetDifficulty(OptionsGUIController.Difficulty diff) { switch(diff) { case(OptionsGUIController.Difficulty.Easy): difficultyIndex = GameplayConfiguration.EASY_MODIFIER; break; case(OptionsGUIController.Difficulty.Medium): difficultyIndex = GameplayConfiguration.MEDIUM_MODIFIER; break; case(OptionsGUIController.Difficulty.Hard): difficultyIndex = GameplayConfiguration.HARD_MODIFIER; break; } }