public IEnumerator LoadEverything()
    {
        //Add the main game UI
        AsyncOperation loadingOperation = SceneManager.LoadSceneAsync("MainGameUI", LoadSceneMode.Additive);

        while (!loadingOperation.isDone)
        {
            yield return(null);
        }

        //Initialize the instances of the newly created objects.
        InstanceDatabase.SetLevelReferences();
        //Initialize the UI
        UIInitializationSequence.instance.Initialize();
        //Create the level (the turrets require the player).
        LevelGenerator.instance.Initialize();

        if (InitializeCostume != null)
        {
            InitializeCostume();
        }
        else
        {
            Debug.LogError("InitializeCostume was null!");                                                              //Used for PlayerCostumeManager
        }
        if (InitializePlayer != null)
        {
            InitializePlayer();
        }
        else
        {
            Debug.LogError("InitializePlayer was null!");                                                             //Used for initializing the HumanoidBaseReferenceClass.
        }
        if (InitializeCameraFunctions != null)
        {
            InitializeCameraFunctions();
        }
        else
        {
            Debug.LogError("InitializeCameraFunctions was null!");                                                                               // Used for camera controller.
        }
    }