Unity_Train/Assets/Player/PlayerController.cs
2025-07-30 15:04:17 +01:00

19 lines
No EOL
521 B
C#

using UnityEngine;
public class PlayerController : MonoBehaviour
{
private Rigidbody m_Rigidbody;
private Camera m_Camera;
private bool m_IsGrounded = false;
private bool m_WantJump = false;
private Vector2 m_MoveInput = Vector2.zero;
private Vector2 m_LookInput = Vector2.zero;
private Vector3 m_Velocity = Vector3.zero;
private float m_MovementSmoothing = .05f;
void Awake()
{
m_Rigidbody = GetComponent<Rigidbody>();
m_Camera = GetComponent<Camera>();
}
}