public bool Activate(int idx, float direction = 0) { if (idx >= Skills.Length) { return(false); } if (ActiveSkill && !ActiveSkill.Abort()) { return(false); } if (!Skills[idx].Activate(direction)) { return(false); } ActiveSkill = Skills[idx]; GetComponent <AnimationController>().PlayAnimation(ActiveSkill.AnimatorController, direction); return(true); }