Method to add an action to the next prompt.
The target phase for the prompt.
The mode of the UI.
The callback function to execute.
Optional
expireFn: (() => void)The function to determine if the prompt has expired.
m2m to set mode.
Rest
...args: any[]
Constructor to initialize the scene and properties, and to start the phase handling.