Example #1
0
    void Update()
    {
        // If the scene is starting...
        if (sceneStarting)
        {
            // ... call the StartScene function.
            StartScene();
        }

        if (sceneEnding)
        {
            EndScene(newScene);
            LoadingScreen.ActivateLoadingScreen();
        }
    }