|
Hey all, I'm trying to make a basic results screen that pops up at the end of my stage. The basic gist is that my game object (housing only a GUITexture component and the script listed below) accesses my Performance script to find out how many lives the player has left. I then use a switch statement to find the appropriate GUITexture which I will then fade in after the results have been posted. Problem is that I keep getting an "InvalidCastException: Cannot cast from source type to destination type" error. Any ideas on what I'm doing wrong? (Fade-in code not included yet.) Thanks for your time! BKF
(comments are locked)
|
|
change to Thanks for the quick reply! Unfortunately, the above code returns an error. "Type edit: Nevermind! Looks like "playerRank.texture" did the trick. Thanks again for your help!
Dec 28 '11 at 08:59 AM
BlacKatFever
(comments are locked)
|
