Home Technical Talk

Unity 3d weird error

manilamerc
polycounter lvl 6
Offline / Send Message
manilamerc polycounter lvl 6
I get this error: Assets/Openable Door.js(13,67): BCE0044: unexpected char: 0xAD.
on line 13

here is my code
function Update (){

if(open == true){
var target = Quaternion.Euler (0, DoorOpenAngle, 0);
// Dampen towards the target rotation
transform.localRotation = Quaternion.Slerp(transform.localRotation*, target,
Time.deltaTime * smooth);
}

iF YOU SEE A STAR BESIDE localRoation ITS NOT S

if(open == false){
var target1 = Quaternion.Euler (0, DoorCloseAngle, 0);
// Dampen towards the target rotation
transform.localRotation = Quaternion.Slerp(transform.localRotation*, target1,
Time.deltaTime * smooth);
}

if(enter == true){
if(Input.GetKeyDown("f")){
open = !open;
}
}
}

//Activate the Main function when player is near the door
function OnTriggerEnter (other : Collider){

if (other.gameObject.tag == "Player") {
(enter) = true;
}
}

//Deactivate the Main function when player is go away from door
function OnTriggerExit (other : Collider){

if (other.gameObject.tag == "Player") {
(enter) = false;
}
}



IF YOU SEE A STAR BESIDE localRoation ITS NOT SUPPOSED TO BE THERE. IT JUST POPS UP EVERY TIME I COPY AND PASTE MY CODE
Sign In or Register to comment.