Quantcast
Channel: Questions in topic: "convex collider"
Viewing all articles
Browse latest Browse all 15

Unexpected token: collider on simple ladder script

$
0
0
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; } } }

Viewing all articles
Browse latest Browse all 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>