Skip to content

after

after(game, seconds, fn): () => void

Calls fn once after seconds of game time. Returns a cancel function; inside a scene it ends with the scene.

Game

number

() => void

() => void