Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }