public static IPromise LoadUnload(SignalBus signalBus, string[] loadScenes, string[] unloadScenes) { LoadUnloadScenesSignal loadUnloadParams = new LoadUnloadScenesSignal() { LoadScenes = loadScenes, UnloadScenes = unloadScenes }; signalBus.Fire(loadUnloadParams); return(loadUnloadParams.OnComplete); }
public static IPromise Unload(SignalBus signalBus, string unloadScene) { LoadUnloadScenesSignal loadUnloadParams = new LoadUnloadScenesSignal() { LoadScenes = null, UnloadScenes = new[] { unloadScene } }; signalBus.Fire(loadUnloadParams); return(loadUnloadParams.OnComplete); }