handleShowScene method

void handleShowScene(
  1. ShowScene showScene
)

Handle a show scene event.

Implementation

void handleShowScene(final ShowScene showScene) {
  final scene = world.getScene(showScene.sceneId);
  final level = getSceneLevel(
    scene: scene,
    callCommand: showScene.callCommand,
  );
  if (game.currentLevel is MainMenu) {
    game.replaceLevel(
      level,
      ambianceFadeTime: world.mainMenuOptions.fadeTime,
    );
  } else {
    game.pushLevel(level);
  }
}