Пример #1
0
    public void SpellButtonPressed(string spell)
    {
        GV.SPELL_TYPE spellEnum = (GV.SPELL_TYPE)System.Enum.Parse(typeof(GV.SPELL_TYPE), spell);

        selectedAbiltity = AbilityManager.Instance.SelectAbility(spellEnum);

        Debug.Log("spell type working " + spell.ToString());
    }
Пример #2
0
 public Ability SelectAbility(GV.SPELL_TYPE monType)
 {
     return(spellBook[monType]);
 }