Esempio n. 1
0
 private void UpdateAnimationStatus()
 {
     if (playerMovementController._isMoving)
     {
         animationController.animationState = AnimationState.RUN;
         attackController.ResetCount();
     }
     else if (!attackController.isAttacking && target != null)
     {
         animationController.animationState = AnimationState.FIGHT_STANCE;
     }
     else
     {
         animationController.animationState = AnimationState.IDLE;
     }
     //else if (!isAttacking && gameObject.GetComponent<AutoAming>().GetNearestAttackableEnemy() != null)
     //{
     //    //animationController.AddException("Run", false);
     //    animationController.animationState = AnimationState.ATTACK;
     //}
     //else if (!attackController.isAttacking) {
     //    animationController.animationState = AnimationState.IDLE;
     //}
 }