Im doing the Roll-A-Ball project and am on moving the player (http://unity3d.com/learn/tutorials/projects/roll-a-ball/moving-the-player). I checked and it it the same as what he put in but when I try to save it and enter unity again I just get “Obsolete API”. What should I do?
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
void FixedUpdate ()
{
float moveHorizonal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizonal, 0.0f, moveVertical);
rigidbody.AddForce(movement);
}
}