So I’m really super new to C# and Unity, but hey, everyone needs to start somewhere right?
Anyway, where in the following script is the error?
Error message: “error CS0119: Expression denotes a type', where a
variable’, value' or
method group’ was expected”
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(Vector3);
}
}