private void SetLevel(int next) { levelUpReadyTracker.No(); accuracyTracker.Clear(); ScoreMachine.Put(LEVEL_RESET_SCORE); Level.Value = next; OnClearBubbles?.Invoke(); }
void ResetScores() { Level.Value = 1; levelUpReadyTracker.No(); accuracyTracker.Clear(); highestScore.Value = 0; ScoreMachine.Put(INITIAL_SCORE); Level.Value = 0; OnClearBubbles?.Invoke(); }
void ApplyRunningState(bool isRunning) { this.doScoreUpdate = isRunning; if (isRunning) { ResetScores(); } else { OnClearBubbles?.Invoke(); } }