- Home /
Question by
Kreativity · Jul 08, 2014 at 11:14 AM ·
errorbce0044
Stomp Script
So the script error I get is unexpected char: 0x201c. (BCE0044
#pragma strict
function OnTriggerEnter(other : Collider){
if(other.tag == “Player”){
transform.root.gameObject.GetComponent(Enemy).stomp = true;
}
}
Comment
Answer by HarshadK · Jul 08, 2014 at 11:17 AM
Looks like the problem is with your double quotes around "Player" They are looking weird and if you notice the code formatter of UA is also not showing your Player string properly. Delete them and put them again and see if it solves your problem. This error sometimes occurs due to unrecognized Unicode character.