public void TryCast() { if (selecting == false) { if (currentSpell as SBlankType2) { unitSelector.spell = currentSpell as SBlankType2; unitSelector.enabled = true; unitSelector.StartSelector(); activeSpell = currentSpell; selecting = true; } else { equipController.ChangeValues(1); Cast(); } } else { var hit = unitSelector.SelectUnit(); equipController.ChangeValues(hit); } }
public void Cast() { SO_Spell combo1, combo2; currentSpell.CastSpell(out combo1, out combo2); activeCanCombo1 = combo1; activeCanCombo2 = combo2; activeSpell = currentSpell; }