예제 #1
0
        public static IPromise LoadUnload(SignalBus signalBus, string[] loadScenes, string[] unloadScenes)
        {
            LoadUnloadScenesSignal loadUnloadParams = new LoadUnloadScenesSignal()
            {
                LoadScenes   = loadScenes,
                UnloadScenes = unloadScenes
            };

            signalBus.Fire(loadUnloadParams);

            return(loadUnloadParams.OnComplete);
        }
예제 #2
0
        public static IPromise Unload(SignalBus signalBus, string unloadScene)
        {
            LoadUnloadScenesSignal loadUnloadParams = new LoadUnloadScenesSignal()
            {
                LoadScenes   = null,
                UnloadScenes = new[] { unloadScene }
            };

            signalBus.Fire(loadUnloadParams);

            return(loadUnloadParams.OnComplete);
        }