I started experimenting with Unity only today. I was going through a video project tutorial “Roll-a-Ball” and I got this error in the following script. The code is exactly as shown in the tutorial. I cannot figure out what’s wrong with this. Help, anybody, please?
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
void FixedUpdate()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
Rigidbody.AddForce(movement);
}
}