restart(clearWorld, clearCache, parameter)
Restarts the current State. State.shutDown will be called (if it exists) before the State is restarted.
Parameters
Name Type Argument Default Description clearWorld boolean <optional> true Clear everything in the world? This clears the World display list fully (but not the Stage, so if you've added your own objects to the Stage they will need managing directly) clearCache boolean <optional> false Clear the Game.Cache? This purg