using UnityEngine; public class PlayerMovement : MonoBehaviour { private Player _player; private Audio _audio; private DemonVector2 _velocity; private int _knockbackFrame; public DemonicsPhysics Physics { get; private set; } public bool HasJumped { get; set; } public bool HasDoubleJumped { get; set; } public bool HasAirDashed { get; set; } public DemonFloat MovementSpeed { get; set; } public bool IsGrounded { get; set; } = true; public bool IsInHitstop { get; private set; } public bool IsInCorner => Physics.OnWall; private InputBuffer inputBuffer; void Awake() { _player = GetComponent(); Physics = GetComponent(); _audio = GetComponent