示例#1
0
    void CorrectWord(string word)
    {
        level.AddFoundWord(word);
        int wordsRemaining = level.GetRemainingWords().Count;

        levelView.AddCorrectWord(word);
        levelView.DisplayMessage("You found a correct word!");

        // If we found all the words
        if (level.FoundAllWords())
        {
            levelView.EndLevel();
        }
    }