コード例 #1
0
        public void Move(float h, float v)
        {
            SetActiveInDictionary(idleState, false);
            if (movingState == null)
            {
                movingState = new MovingState(playerView);
                AddToStateDictionary(movingState, true);
            }
            SetActiveInDictionary(movingState, true);

            currentState = movingState;
            playerView.MovePlayer(h, v, playerModel.GetSpeed());
        }
コード例 #2
0
 private void UpdateStates()
 {
     MovingState = _playerAnimator.Animator.GetBool(GlobalAnimationData.IsAttacking) ?
                   MovingState.SmoothDash : MovingState.DefaultMove;
 }