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()); }
public Ability SelectAbility(GV.SPELL_TYPE monType) { return(spellBook[monType]); }