i am on this video and the code he provided is not working i get 8 errors when using his code
here is the code he said to use
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 * 500 * Time.deltaTime);
}
function OnTriggerEnter (other : Collider)
{
if(other.gameObject.tag == "pickup")
{
other.gameObject.SetActive(false);
}
}
}