void LoadTitle(OverlayUiOperator loadingUiOperator) { Game.Scene.LoadTitle(ss => { ss.Ui.AddEntriedAction(loadingUiOperator.NotifyTermination); }); }
public IEnumerator StartGame() { yield return(PrepareFirstAssets()); OverlayUiOperator loadingUiOperator = Game.Scene.ShowLoading(); yield return(PrepareTitleAssets()); loadingUiOperator.AddShownAction(() => LoadTitle(loadingUiOperator)); }
IEnumerator UpdateDisplayAsync() { while (!assetBundlePreloader.IsFinished) { UpdateDownloadCount(); yield return(null); } UpdateDownloadCount(); while (!IsShown) { yield return(null); } OverlayUiOperator loadingUiOperator = Game.Scene.ShowLoading(); onDownloaded.Invoke(loadingUiOperator); }
IEnumerator OnStartButtonClickedAsync() { OverlayUiOperator loadingUiOperator = Game.Scene.ShowLoading(); yield return(Game.AssetCaller.SetResrouceTable(AssetStep.All, AssetLanguage.Japanese)); AssetBundlePreloader preloader = Game.AssetCaller.GetResourcePreloader(); preloader.StartPreloading(); if (preloader.MaxAssetBundleCount > 0) { Game.Scene.LoadDownload( ss => ss.Ui.Init(preloader, LoadFirstScene), loadingUiOperator); } else { LoadFirstScene(loadingUiOperator); } }
void LoadFirstScene(OverlayUiOperator loadingUiOperator) { Game.Scene.LoadFirst(overlayUiOperator: loadingUiOperator); }