#pragma strict
var fireballbullet : Transform;
function Start () {
}
function Update ()
{
if (Input.GetKeyUp(“e”))
{
var bulletfire = Instantiate (fireballbullet,GameObject.Find(“bullet_SpawnPoint”).transform.position,Quaternion.identity);
bulletfire.rigidbody.AddForce(transform.forward *500);
}
}
Delete the spaces after the last “}”. Or alternatively, rewrite the script (not copy-paste), because you’ll copy the “0xFEFF character” that is causing the problem.
In my case, I had removed my files from a folder and put into the project base folder, then after Unity crashed (yeah) I re-opened my project and got everything imported again, then… it works!
Not really a good help but solved my problem.