So I had a couple of errors and I fixed them all but now I get this error CS0119. If I debug my script it says a Method is expected. Since I’m new to Unity I have no idea how to fix this.
Here is my Script:
using UnityEngine;
using System.Collections;
public class PlayerMovement : MonoBehaviour {
float speed = 10.0f;
private Animator anim;
Vector3 direction = Vector3.zero;
CharacterController cc;
// Use this for initialization
void Start () {
cc = GetComponent ();
}
// Update is called once per frame
void Update () {
direction = new Vector3 (Input.GetAxis (“Horizontal”), 0, Input.GetAxis (“Vertical”)).normalized;
if (Input.GetKey (KeyCode.LeftShift)) {
speed = 10.0f;
} else if (!Input.GetKey (KeyCode.LeftShift)) {
speed = 6.0f;
}
}
void FixedUpdate (){
cc.SimpleMove(direction * speed)();
}
}
BTW Apperantely adding a Attachment won’t work so i’ll type it out like this (SORRY)