예제 #1
0
    public void AddSpell()
    {
        string phrase;

        do
        {
            phrase = GetRandomWord(phrases, false);
        } while (phrase.Split(' ').Length > 3);
        activeSpell = new SpellWord(phrase, wordSpawner.SpawnSpell());
        words.Add(activeSpell);
    }