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()); }
private void UpdateStates() { MovingState = _playerAnimator.Animator.GetBool(GlobalAnimationData.IsAttacking) ? MovingState.SmoothDash : MovingState.DefaultMove; }