Function  
 onCleanup
(action: () => void): voidCleanup function to run when quit() is called.
param action- The function to run when the event is triggered.
since v3000.0
group Events
Cleanup function to run when quit() is called.
param action- The function to run when the event is triggered.
since v3000.0
group Events
  Assets
Game Obj
Components
Component Types
Scene
Input
Events
Info
Math
Layer
Camera
Layers
Level
Draw
Plugins
Button Bindings
GFX
Miscalenous