void HeroAnimationState()
    {
        if (ctrlAnimState == ControlAnimationState.Idle)
        {
            animationManager.animationState = animationManager.Idle;
        }

        if (ctrlAnimState == ControlAnimationState.Move)
        {
            animationManager.animationState = animationManager.Move;
        }

        if (ctrlAnimState == ControlAnimationState.WaitAttack)
        {
            animationManager.animationState = animationManager.Idle;
            WaitAttack();
        }
        if (ctrlAnimState == ControlAnimationState.Attack)
        {
            if (target)
            {
                LookAtTarget(target.transform.position);

                if (checkCritical)
                {
                    animationManager.animationState = animationManager.CriticalAttack;
                    delayAttack = 100;
                    onceAttack  = false;
                }
                else if (!checkCritical)
                {
                    animationManager.animationState = animationManager.Attack;
                    delayAttack = 100;
                    onceAttack  = false;
                }
            }
            else
            {
                ctrlAnimState = ControlAnimationState.Idle;
            }
        }

        if (ctrlAnimState == ControlAnimationState.TakeAtk)
        {
            animationManager.animationState = animationManager.TakeAttack;
        }

        if (ctrlAnimState == ControlAnimationState.Cast)
        {
            playerSkill.CastSkill(playerSkill.FindSkillType(castid), playerSkill.FindSkillIndex(castid));

            animationManager.animationState = animationManager.Cast;
        }

        if (ctrlAnimState == ControlAnimationState.ActiveSkill)
        {
            animationManager.animationState = animationManager.ActiveSkill;
        }

        if (ctrlAnimState == ControlAnimationState.Death)
        {
            animationManager.animationState = animationManager.Death;
        }
    }