Get the current (top) scene key
Get stack depth
Clear the entire stack (stops all scenes)
Get all scenes in the stack (bottom to top)
Check if a scene is in the stack
Pop the top scene. The scene below it is resumed.
Pop all scenes except the bottom one and resume it.
Push a scene on top of the stack. The current scene is paused.
Optionaldata: objectReplace the top scene with a new one.
Optionaldata: object
Stack-based scene management. Push scenes on top (pause below), pop to return to the previous scene. Useful for menus, inventories, pause screens layered over gameplay.