SK.AddStepper
static Object AddStepper(Type type)
This creates and registers an instance the IStepper
type
provided as the generic parameter. SK will hold onto it, Initialize
it, Step it every frame, and call Shutdown when the application
ends. This is generally safe to do before SK.Initialize is called,
the constructor is called right away, and Initialize is called
right after SK.Initialize, or right away if SK is already
initialized.
Type type | Any object that implements IStepper, and has a constructor with zero parameters. |
RETURNS: Object | Just for convenience, this returns the instance that was just added. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!