Function promised_wait

  • Promised way to create and wait a Phaser.Timer. Waits for the amount of time given.

    Parameters

    • game: Game

      the Phaser game object.

    • time: number

      the time in ms.

    • Optional callback: (() => void)

      on timer finish callback.

        • (): void
        • Returns void

    Returns Promise<void>