/// <summary> /// Load Level Async so we can show the /// </summary> /// <param name="_scene"></param> /// <param name="_delayAfterLoading"></param> /// <param name="_eventName"></param> private void LoadSceneAsync(PMR_SceneSetup.SCENES _scene, float _delayAfterLoading = 1f, string _eventName = "") { StartCoroutine(LoadingScreen((int)_scene, _delayAfterLoading, _eventName)); }
/// <summary> /// Load Scene from anywhere (static method) /// </summary> /// <param name="_scene"></param> /// <param name="_delayAfterLoading"></param> /// <param name="_eventName"></param> public static void LoadScene(PMR_SceneSetup.SCENES _scene, float _delayAfterLoading = 1f, string _eventName = "") { Instance.LoadSceneAsync(_scene, _delayAfterLoading, _eventName); }