ok so i keep having this thing where it says
ArgumentException: Input Axis horizontal is not setup.
To change the input settings use: Edit → Settings → Input and i cant seem to fix it any help?
here is the code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Lastfreakingscript : MonoBehaviour
{
public CharacterController controller;
public float speed = 6f;
// Update is called once per frame
void Update()
{
float horizontal = Input.GetAxisRaw("horizontal");
float vertical = Input.GetAxisRaw("vertical");
Vector3 direction = new Vector3(horizontal, 0f, vertical);
if (direction.magnitude >= 0.1f) ;
controller.Move(direction * speed * Time.deltaTime);
}
}