(10,51): BCE0044: unexpected char: 0xFEFF.
#pragma strict
function OnTriggerEnter(other : Collider)
{
if (other.tag == "Player")
{
Application.LoadLevel("BuildControl Example");
}
}
(10,51): BCE0044: unexpected char: 0xFEFF.
#pragma strict
function OnTriggerEnter(other : Collider)
{
if (other.tag == "Player")
{
Application.LoadLevel("BuildControl Example");
}
}
The problem with your code is the same as you will find with all the other questions that posted this error. Somehow you have inserted characters with code values above 128 into your code. If you pull your code up in any editor that shows these characters you will see them:
There are bad characters on line 2 and line 7. The solution is to delete the lines and retype them.