Exemple #1
0
    public void SpellCheck()
    {
        foreach (Spell spell in spells)
        {
            if (GameManager.Instance.GetKeyboardTextValue() == spell.spellCode && spell.unlocked)
            {
                justCasted           = true;
                currentSpell         = spell;
                staticCurrentSpell   = spell;
                currentSpellDelegate = GetSpellDelegate(spell.effect);
                GameManager.Instance.ManualToggleKeyboard(false);
                Cast(spell);

                return;
            }
        }

        UIManager.Instance.InvalidEntry();
    }
 void Start()
 {
     spell1 = TillSoil;
 }