Hello, I’m doing the tutorial on making the “Roll-a-ball” game and I have just done the movement script for the ball but when I test the game the ball doesn’t move and this error shows in the console.
I have already checked the settings in Project Manager > Input > Horizontal and they look fine, what should I do?
im having this problem but cant identify the error ive copied and pasted the exact spelling unity has used for “horizontal” but the error persists
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
public float speed = 5.0f;
public float turnspeed;
public float horizontalInput;
public float forwardInput;
// Start is called before the first frame update
void Awake()
{
}
// Update is called once per frame
void Update()
{
horizontalInput = Input.GetAxis(“horizontalInput”);
forwardInput = Input.GetAxis(“Vertical”);