Hi - I continue my scary journey into OOP! I'm trying to pass an object (an instance of a type if I understand it correctly) to a method. I'm then assigning that instance to another instance (if you are following this) within the ProcessButtons Method. However, when I debugstop after the currentScreen=Button.TargetScreen, the currentScreen=NULL which is obviously causing an error.
The code is below, is there a particular way to assign currentScreen another Type?
Essentially I want the player to click on a button, and depending on the button clicked will change the screen that is drawn (referenced by currentScreen). Thanks for any help as always.
|