private void HandleSkillAnimations() { if (m_SkillHandler == null) { return; } if (!m_SkillHandler.GetCastInCurrentFrame()) { m_Animator.SetInteger("SkillsIndex", (int)SkillItem.SkillType.NONE); } else { int currentActiveSkill = m_SkillHandler.GetCurrentActiveSkill(); if (currentActiveSkill != (int)SkillItem.SkillType.NONE) { m_Animator.SetInteger("SkillsIndex", currentActiveSkill); } } }