예제 #1
0
        public void Updating()
        {
            if (_stateMachine.CurrentState != _stateMachine._deadState)
            {
                BattleIgnoreCheck();
                GroundCheck();
                MovementCheck();
                SpeedCheck();
                StateCheck();
                GetClosestEnemy();
                _stateMachine.CurrentState.Execute();
            }

            _animationController.UpdateAnimationParameters(_inputModel.inputStruct._inputTotalAxisX,
                                                           _inputModel.inputStruct._inputTotalAxisY, _characterModel.CurrentSpeed, _characterModel.AnimationSpeed);
        }