Perhaps periodically do a Physics.Raycast to your character/worm. If you do not hit it, instead hide any walls that you did hit that are in the way.
Not sure what you’re asking on this one. It should just be a matter of changing the string that you pass into the GUIText. Maybe you mean how do you change a GUIText that you created in the editor? You should be able to target it and change its “text” property in JavaScript.
Thank you very much.
2) Im sorry that I didnt ask that enough clearly.
What I want to do is that:
I want to make the guiText on the screen show “Level : xx” on first line, (Its “Gui Text” now.)
and the second line show “exp: xx/xx”.
How to do this?
First off, if you haven’t already you might want to check out the Unity GUI tutorial.
Also, I’ve never been one for books, so I can’t help you there, but in terms of scripting, I’m a total advocate of C#. Javascript is very friendly, but if you want to do anything more advanced than simple behavior scripts, you will find that not being able to define your own class structure is very limiting.
There are plenty of C# tutorials online, and if you want to see what you have at your disposal that is not covered in the unity documentation, check out The MSDN Library and Mono’s documentation.