Hi
I have c# code that allows me to rotate the steering wheel and wheels together and I can move the steering wheel via a slider in the inspector

using System.Collections;
using UnityEngine;
public class SteeringWheelRotation : MonoBehaviour {
[Range(-45f,45f)]
public float steeringWheelRotationAmount = 0f;
public float wheelRotationDampening = 0.5f;
public Transform frontLeftWheel, frontRightWheel;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.eulerAngles = new Vector3 (transform.eulerAngles.x, transform.eulerAngles.y, -steeringWheelRotationAmount);
frontLeftWheel.eulerAngles = new Vector3 (frontLeftWheel.eulerAngles.x, steeringWheelRotationAmount*wheelRotationDampening, frontLeftWheel.eulerAngles.z);
frontRightWheel.eulerAngles = new Vector3 (frontRightWheel.eulerAngles.x, steeringWheelRotationAmount*wheelRotationDampening, frontRightWheel.eulerAngles.z);
}
}
I would like to be able to use the left and right arrow buttons when start the game to move the car
could anyone help on that