Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SceneManager

A class for managing which scene is currently active.

Hierarchy

  • SceneManager

Index

Methods

changeScene

  • changeScene(newScene: Scene): void
  • Changes the scene calling onEnded() on the scene that was previously active and onStarted() on the new one.

    Parameters

    • newScene: Scene

      The new scene that should replace the old one.

    Returns void

update

  • update(passedTime: number): void
  • Called every frame, will call update() of the current scene.

    Parameters

    • passedTime: number

      The time that passed since the last frame in milliseconds

    Returns void

Generated using TypeDoc