private void Animations(bool isJumping) { fpsAnimator.SetAiming(gunState.Data.IsAiming); fpsAnimator.SetGrounded(movement.IsGrounded); fpsAnimator.SetMovement(transform.position, Time.deltaTime); fpsAnimator.SetPitch(pitchTransform.transform.localEulerAngles.x); if (isJumping) { fpsAnimator.Jump(); } }
private void Update() { fpsAnimator.SetGrounded(driver.IsGrounded); if (isMoving) { movementTimeout -= Time.deltaTime; if (movementTimeout <= 0) { fpsAnimator.StopMovement(); isMoving = false; } } }