Title says it all when i typed the code it says unexpected char: 0xFEFF. (BCE0044) i know i know i sound like a whining noob put i wanted to learn gaming development and now that i have it and my code is not working it’s hard for me 2 continue. Here is my code i put down.
#pragma strict
function Start () {
}
var speed = 3.0;
var rotateSpeed = 3.0;
function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
//Rotate around y - axis
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
//Move forward / backward
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSpeed);
}
@script RequireComponent(CharacterController)
Please if u know whats wrong tell me