This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using e23.VehicleController; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class ExampleTouchScreen : MonoBehaviour, IPointerDownHandler, IPointerUpHandler | |
{ | |
[SerializeField] VehicleBehaviour vehicleBehaviour; | |
[SerializeField] bool accelerate; | |
[SerializeField] bool brake; | |
[SerializeField] bool steerLeft; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.InputSystem; | |
public class ExampleInputSystem : MonoBehaviour | |
{ | |
[SerializeField] private VehicleBehaviour vehicleBehaviour; | |
[Header("Controls")] | |
[SerializeField] private PlayerInput playerInput; |