ExecuteAndRemoveOrCyclePassedInstructions
Introduction
The ExecuteAndRemoveOrCyclePassedInstructions will execute instructions which should be executed based off of the current time, then either remove or cycle any executed instructions. This method allows manual execution of Instructions without requiring the user to write the logic of time testing and cycling.
This method is used internally by the FlatRedBall Engine so calling it will guarantee behavior which matches the engine's behavior regarding Instruction management.
Code Example
Assuming that instructionList is a valid instance, the following code can be called every frame to execute and remove Instructions from the instructionList:
Last updated