Quantcast
Channel: Answers for "BCE0044: expecting ), found '{'."
Viewing all articles
Browse latest Browse all 4

Answer by tanoshimi

$
0
0
You'll find it easier to spot errors if you learn to indent blocks of code that are contained within brackets - you're currently missing a closing } at the end of the function, and a closing ) on line 2. Also KeyCode.Escape, not esc. Try this instead: function OnTriggerEnter(other : Collider) { if (Input.GetKey(KeyCode.Escape) { Application.LoadLevel (3); } }

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images