hello, I m making a fps game. but it said error cs0131 the left hand side of an assignment must be a cariabe, a property or an indexer
here is my code
using UnityEngine;
using System.Collections;
public class player : MonoBehaviour {
public float movementspeeds= 5.00f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float forwardSpeed= Input.GetAxis("Vertical")=movementspeeds;
Vector3 speed = new Vector3 (0, 0, forwardSpeed );
CharacterController cc = GetComponent<CharacterController>();
cc.SimpleMove( speed );
}
}
can anyone teach me how to fix it? thankyou very much