another car sript

This commit is contained in:
magn9775
2024-04-05 12:30:05 +02:00
parent 7dfa783aac
commit 7e2f7095ca
5 changed files with 189 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
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");
}
}