private void SetDifficulty(Difficulty.DifficultyLevel difficulty) { _randomizer.ClearList(); // Populate question list based on a category foreach (var question in _questions.Where(i => i.Difficulty == difficulty)) { _randomizer.AddToList(question); } }
private void SetDifficulty(Difficulty.DifficultyLevel difficulty) { _randomizer.ClearList(); // Populate question list based on a category foreach (var puzzle in _rebusPuzzleCollections.Where(i => i.Difficulty == difficulty)) { _randomizer.AddToList(puzzle.Image); } }
private void StartGame() { TimerManager.OnPreGameTimerEndEvent -= StartGame; _timerManager.StartTimerAt(0, 10f); for (int i = 0; i < 15; i++) { _randomizer.AddToList(_listOfWords[Random.Range(0, _listOfWords.Length)]); } DisplayWord(); StartCoroutine(ChangeWord()); }