Level Controller

This script is being used to switch between different scenes.

The variables are the scene number, the transition and the transition time. Pretty straight forward.

Next, this function will be called when the specified button is pressed. It will start the coroutine and call the Load Level function.

So, here it says to wait for an amount of seconds, which is the transition time. Once that is done, it will load the scene that is specified.

Leave a comment

Design a site like this with WordPress.com
Get started