hi guys i get and error saying: Assets/scripts/ladder.js(27,34): BCE0043: Unexpected token: Collider. my script is
var Player : GameObject;
var CanClimb : boolean = false;
function Update () {
if(Input.GetKey(KeyCode.W)){ if(CanClimb == true) } else Debug.Log("Player can't climb"); } if(!Input.GetKey(KeyCode.W)){ if(CanClimb == true) } else Debug.Log()
}
function (OnTriggerEnter (other : Collider) {;
if(other.gameObject.tag == "Player"){
CanClimb = true;
}
}
function OnTriggerExit;{ (other ;Collider) )
if(other.gameObject.tag == "Player"){
CanClimb = false;
}
}
}
↧