// handle skill commands private void Skill() { int sklCmd = cmdHolder.GetSkillCmd(); // activate the skill if avalible if (sklCmd != -1 && skills[sklCmd].Avalible()) { animator.SetInteger("skillState", sklCmd); skills[sklCmd].Use(); } AdjustTextBoard(); }