Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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());
        }