Files
racesm/Assets/Scripts/Unused/InputController.cs
magn9775 d9b73bd148 NPC
2024-04-22 10:06:47 +02:00

18 lines
438 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InputController : MonoBehaviour
{
public float Horizontal { get; private set; }
public float Vertical { get; private set; }
public float Brake { get; private set; }
void Update()
{
Horizontal = Input.GetAxis("Horizontal");
Vertical = Input.GetAxis("Vertical");
Brake = Input.GetAxis("Jump");
}
}