|
this script is on my button GUITexture
this script is on a dragon that circles until the button is clicked then moves toward the target located near the camera
When I test it in game mode the button does the rollover and on MouseUp the dragon breathes fire and moves toward the target object. When I do build and run the rollover works but the dragon just stops wherever he happens to be, no flames, no Lerp, no level open.
(comments are locked)
|
|
I can't belive that your setup work, even in "game mode".
in this line you try to get a reference to the DragonGameInfo script. I guess, you didn't tell us the script names, your second script is the "DragonGameIntro" script and is attached to this dragon GameObject.
You don't use the Dragon-GameObject-reference at the moment, so maybe you implemented it later and forgot to change it in that line. Thanks, I was sure it was something stupid. I too am puzzled how it worked in game mode. The fact that it worked had me overlooking the obvious.
Jan 29 '11 at 03:49 PM
Mr_T
Just another hint: If you create a windows build all Debug.Log will still logged but not in a console window like in the editor but to a text-file. The file is located in the data folder of your build and is called "output_log.txt". If there are errors like null-reference exceptions they will be logged into that file.
Jan 30 '11 at 12:50 AM
Bunny83
(comments are locked)
|
