예제 #1
0
 void LoadTitle(OverlayUiOperator loadingUiOperator)
 {
     Game.Scene.LoadTitle(ss =>
     {
         ss.Ui.AddEntriedAction(loadingUiOperator.NotifyTermination);
     });
 }
예제 #2
0
        public IEnumerator StartGame()
        {
            yield return(PrepareFirstAssets());

            OverlayUiOperator loadingUiOperator = Game.Scene.ShowLoading();

            yield return(PrepareTitleAssets());

            loadingUiOperator.AddShownAction(() => LoadTitle(loadingUiOperator));
        }
예제 #3
0
        IEnumerator UpdateDisplayAsync()
        {
            while (!assetBundlePreloader.IsFinished)
            {
                UpdateDownloadCount();
                yield return(null);
            }

            UpdateDownloadCount();

            while (!IsShown)
            {
                yield return(null);
            }

            OverlayUiOperator loadingUiOperator = Game.Scene.ShowLoading();

            onDownloaded.Invoke(loadingUiOperator);
        }
예제 #4
0
        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);
            }
        }
예제 #5
0
 void LoadFirstScene(OverlayUiOperator loadingUiOperator)
 {
     Game.Scene.LoadFirst(overlayUiOperator: loadingUiOperator);
 }