Skip to content

Stage Controller

Aidan Mathieu edited this page Apr 7, 2026 · 1 revision

This script is used to manage the flow of the game between levels as well as setting the design of the levels when it is loaded.

LoadCurrentLevel():

When the scene is loaded, this function is called. It is a switch statement which uses the GameData object that holds the name of the current level. It then calls the function which sets up the current level for the scene.

LoadNextLevel():

When this function is called, normally at the end of a level to start the next level, it will use a switch statement to determine what level the GameData object says that they currently on, and sets that level name to the next levels name. It will then reload the scene, which will call the LoadCurrentLevel() function with the next level's name.

Level Setting Functions:

There are a series of functions that are used to set the specifics for different levels in the game. It references the Conveyor Line object scripts to set the speed of conveyors and machines. It will also call functions in numerous other scripts to set specifics such as how points will be tracked, what the demand will be, and whether order releases will be done automatically.

Clone this wiki locally