Hi guys. I'm trying write restart game code when something hit the floor:
I got: Assets/-MyScripts/RestartLevel-1.js(7,32): BCE0005: Unknown identifier: 'thisLevel'. Why 'thisLevel' is unknown?
thanks for any answer
You are declaring "thisLevel" in the local scope of the start function and the variable does not exist anywhere else.
Try the following:
answered Jan 09 '11 at 10:20 AM