(scene: Scene)
| 18 | } |
| 19 | |
| 20 | export function endScene(scene: Scene) { |
| 21 | if (SceneStack.pop() !== scene) { |
| 22 | throw new Error('startScene/endScene were called out of order.'); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | export function useLogger() { |
| 27 | return SceneStack.at(-1)?.logger ?? console; |
no outgoing calls