Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static async Task LoadScenesAsync(this SceneTransitionSystem transitionSystem, string[] loadScenes, ITransitionPresenter oneTimePresenter)
        {
            transitionSystem.AddPresenter(oneTimePresenter);
            await transitionSystem.LoadScenesAsync(loadScenes);

            transitionSystem.RemovePresenter(oneTimePresenter);
        }