Note - StaticMethodInstruction is now marked as obsolete in favor of using DelegateInstruction and Call.
StaticMethodInstructions can be used to call methods belonging to static classes. This class is useful for calling methods belonging to FlatRedBall manager classes like the SpriteManager.
The following code creates an instruction that will add a Sprite to the scene after 2 seconds. Instructions can be added to the InstructionManager to be executed automatically. Add the following using statements:
Add the following to Initialize after initializing FlatRedBall:
Did this article leave any questions unanswered? Post any question in our forums for a rapid response.