I’m getting another error after putting in some code
Here’s my code:
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
ProcessThrust();
ProcessRotation();
}
void ProcessThrust()
{
if(Input.GetKey(KeyCode.Space))
{
Debug.Log("Thrusting");
}
}
void ProcessRotation()
{
if (Input.GetKey(KeyCode.A))
{
Debug.Log("rotate left");
}
else if (Input.GetKey(KeyCode.D))
{
Debug.Log("rotate right");
}
Please help!