public void ExecuteAbility(AttackTemplate ability) { Debug.Log("executing " + ability.getMyName()); if (ability.hasASpellAnimation) { abilityIsASpell = true; spellName = ability.getMyName(); } else { abilityIsASpell = false; } if (ability.isARangerAbility) { rangerAbility = true; } else { rangerAbility = false; } allowAttack = false; stopMovement(); theInputButtons = ability.GetComboInputSequence(); damageValues = ability.GetDamageSteps(); if (showHelpText) { // inputInstruction.text = "Press spacebar to select targets, cycle with WASD"; } // damageValues = setDamageValues(); ability.CheckLine(); //start aquiring targets disableAttackInput(); }
private void AttackTemplate_Updated() { AttackResult = AttackTemplate.GetResultTemplate(); }