コード例 #1
0
        protected override bool Init()
        {
            App.InitLoadMasterDataManager();
            App.InitSystems();
            UIPanel maskPanel = TitleTaskManager.GetMaskPanel();

            maskPanel.get_transform().LTCancel();
            maskPanel.get_transform().LTValue(maskPanel.alpha, 0f, 0.15f).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x)
            {
                maskPanel.alpha = x;
            });
            SoundUtils.PlaySceneBGM(BGMFileInfos.Strategy);
            this._clsState = new StatementMachine();
            UITitleLogo logo = TitleTaskManager.GetUITitleLogo();

            if (logo.panel.alpha == 0f)
            {
                logo.Show().setOnComplete(delegate
                {
                    Observable.Timer(TimeSpan.FromSeconds(1.0)).Subscribe(delegate(long _)
                    {
                        logo.StartLogoAnim();
                        this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitPressAnyKey), new StatementMachine.StatementMachineUpdate(this.UpdatePressAnyKey));
                        this.SetupLeaveTimer();
                    });
                });
            }
            else
            {
                this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitPressAnyKey), new StatementMachine.StatementMachineUpdate(this.UpdatePressAnyKey));
                this.SetupLeaveTimer();
            }
            Observable.FromCoroutine(new Func <IEnumerator>(this.NoticeMasterInitComplete), false).Subscribe <Unit>().AddTo(base.get_gameObject());
            return(true);
        }
コード例 #2
0
 private void SetupLeaveTimer()
 {
     if (this._disLeaveSubscription != null)
     {
         this._disLeaveSubscription.Dispose();
     }
     this._disLeaveSubscription = Observable.Timer(TimeSpan.FromSeconds(30.0)).Subscribe(delegate(long _)
     {
         this._clsState.Clear();
         UITitleLogo uITitleLogo = TitleTaskManager.GetUITitleLogo();
         uITitleLogo.Hide();
         SoundUtils.StopFadeBGM(0.3f, delegate
         {
             TitleTaskManager.ReqMode(TitleTaskManagerMode.TitleTaskManagerMode_ST);
         });
     }).AddTo(base.get_gameObject());
 }