Not sure if I did something wrong but I am not getting any response from my arrow key input. Any ideas?
Here is my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateCar : MonoBehaviour
{
[SerializeField] float steerSpeed = 0.01f;
[SerializeField] float moveSpeed = 0.01f;
void Start()
{
}
void Update()
{
float steerAmount = Input.GetAxis("Horizontal");
transform.Translate(0, moveSpeed, 0);
transform.Rotate(0, 0, steerSpeed);
}
}