37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Player.Camera;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
namespace Player.Movement
|
|
{
|
|
public partial class PlayerMovementController
|
|
{
|
|
[Header("Refs")]
|
|
[SerializeField] private PlayerCameraController playerCameraController;
|
|
[Header("Input Actions")]
|
|
[SerializeField] private InputActionReference moveAction;
|
|
[SerializeField] private InputActionReference slideAction;
|
|
[SerializeField] private InputActionReference jumpAction;
|
|
[SerializeField] private InputActionReference crouchAction;
|
|
[SerializeField] private InputActionReference sprintAction;
|
|
|
|
[Space]
|
|
[Header("Settings")]
|
|
|
|
[SerializeField] private LayerMask groundLayerMask;
|
|
|
|
[SerializeField] private float maxMovementSpeed = 5f;
|
|
[SerializeField] private float acceleration = 0.5f;
|
|
|
|
[SerializeField] private float frictionCoefficient = 0.16f;
|
|
|
|
[SerializeField] private float slideSpeed = 15f;
|
|
[SerializeField] private float slideFrictionCoefficient = 0.07f;
|
|
|
|
[SerializeField] private float sprintSpeed = 10f;
|
|
|
|
[SerializeField] private float jumpForce = 600f;
|
|
[SerializeField] private float extraHeight = 0.01f;
|
|
}
|
|
}
|