예제 #1
0
        public static async Task LoadScenesAsync(this SceneTransitionSystem transitionSystem, string[] scenesToLoad, ITransitionPresenter oneTimePresenter)
        {
            transitionSystem.AddPresenter(oneTimePresenter);
            await transitionSystem.LoadScenesAsync(scenesToLoad).ConfigureAwait(true);

            transitionSystem.RemovePresenter(oneTimePresenter);
        }
예제 #2
0
        public static async Task LoadSceneAsync(this SceneTransitionSystem transitionSystem, string sceneName, ITransitionPresenter oneTimePresenter, LoadSceneMode mode = LoadSceneMode.Single)
        {
            transitionSystem.AddPresenter(oneTimePresenter);
            await transitionSystem.LoadSceneAsync(sceneName, mode).ConfigureAwait(true);

            transitionSystem.RemovePresenter(oneTimePresenter);
        }
예제 #3
0
        public static async Task LoadScenesAsync(this SceneTransitionSystem transitionSystem, string[] loadScenes, ITransitionPresenter oneTimePresenter)
        {
            transitionSystem.AddPresenter(oneTimePresenter);
            await transitionSystem.LoadScenesAsync(loadScenes);

            transitionSystem.RemovePresenter(oneTimePresenter);
        }
예제 #4
0
 public static async void LoadScene(this SceneTransitionSystem transitionSystem, string sceneName, ITransitionPresenter oneTimePresenter, LoadSceneMode mode = LoadSceneMode.Single)
 {
     await LoadSceneAsync(transitionSystem, sceneName, oneTimePresenter, mode).ConfigureAwait(false);
 }
예제 #5
0
 public static async void LoadScenes(this SceneTransitionSystem transitionSystem, string[] scenesToLoad, ITransitionPresenter oneTimePresenter)
 {
     await LoadScenesAsync(transitionSystem, scenesToLoad, oneTimePresenter).ConfigureAwait(false);
 }
예제 #6
0
 public static async void LoadScenes(this SceneTransitionSystem transitionSystem, string[] loadScenes, ITransitionPresenter oneTimePresenter)
 {
     await LoadScenesAsync(transitionSystem, loadScenes, oneTimePresenter);
 }