Here’s the code I wrote for my character controller:
using UnityEngine;
using System.Collections;
public class FirstPersonController : MonoBehaviour {
public float movementSpeed = 5.0f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float forwardSpeed = Input.GetAxis("Verical") * movementSpeed;
float sideSpeed = Input.GetAxis("Horizontal") * movementSpeed;
Vector3 speed = new Vector3( sideSpeed, 0, forwardSpeed );
CharacterController cc = GetComponent<CharacterController>();
cc.SimpleMove( speed );
}
}
And when I try to move my character I can’t move and I get this error:
UnityException: Input Axis Vertical is not setup.
To change the imput setting use: Edit → Project Settings → Input
FirstPersonController.Update () (at Assets/Script/FirstPersonController.cs:16)
Can you help me fix my problem.