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);
        }
Esempio n. 2
0
        protected override bool Init()
        {
            PSVitaMovie movie     = TitleTaskManager.GetPSVitaMovie();
            UIPanel     maskPanel = TitleTaskManager.GetMaskPanel();

            this._isInputPossible = false;
            SoundUtils.StopBGM();
            if (!movie.isPlaying)
            {
                movie.SetLooping(0).SetMode(0).SetOnWarningID(delegate
                {
                    movie.ImmediateOnFinished();
                }).SetOnPlay(delegate
                {
                    maskPanel.get_transform().LTCancel();
                    maskPanel.get_transform().LTValue(maskPanel.alpha, 1f, 0.15f).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x)
                    {
                        maskPanel.alpha = x;
                    });
                }).SetOnBuffering(delegate
                {
                    Observable.Timer(TimeSpan.FromSeconds(1.0)).Subscribe(delegate(long _)
                    {
                        this._isInputPossible = true;
                    });
                    maskPanel.get_transform().GetChild(0).GetComponent <UITexture>().color = Color.get_white();
                }).SetOnFinished(new Action(this.OnMovieFinished)).Play(MovieFileInfos.MOVIE_FILE_INFOS_ID_ST.GetFilePath());
            }
            if (SingletonMonoBehaviour <FadeCamera> .Instance != null && SingletonMonoBehaviour <FadeCamera> .Instance.isFadeOut)
            {
                SingletonMonoBehaviour <FadeCamera> .Instance.FadeIn(0.2f, null);
            }
            return(true);
        }
Esempio n. 3
0
        public void PlayImmediateOpeningMovie()
        {
            PSVitaMovie movie     = TitleTaskManager.GetPSVitaMovie();
            UIPanel     maskPanel = TitleTaskManager.GetMaskPanel();

            movie = TitleTaskManager.GetPSVitaMovie();
            movie.SetLooping(0).SetMode(0).SetOnPlay(delegate
            {
                maskPanel.get_transform().LTCancel();
                maskPanel.get_transform().LTValue(maskPanel.alpha, 1f, 0.15f).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x)
                {
                    maskPanel.alpha = x;
                });
            }).SetOnBuffering(delegate
            {
                Observable.Timer(TimeSpan.FromSeconds(1.0)).Subscribe(delegate(long _)
                {
                    this._isInputPossible = true;
                });
                maskPanel.get_transform().GetChild(0).GetComponent <UITexture>().color = Color.get_white();
            }).SetOnWarningID(delegate
            {
                movie.ImmediateOnFinished();
            }).SetOnFinished(new Action(this.OnMovieFinished)).Play(MovieFileInfos.MOVIE_FILE_INFOS_ID_ST.GetFilePath());
        }
 protected override bool Run()
 {
     _ctrlDifficultySelect.Run();
     if (TitleTaskManager.GetMode() != TitleTaskManagerMode.TitleTaskManagerMode_BEF)
     {
         return((TitleTaskManager.GetMode() == TitleTaskManagerMode.NewGame) ? true : false);
     }
     return(true);
 }
        protected override bool Init()
        {
            HashSet <DifficultKind> hashSet = new HashSet <DifficultKind>();

            hashSet.Add(DifficultKind.HEI);
            hashSet.Add(DifficultKind.KOU);
            hashSet.Add(DifficultKind.OTU);
            _ctrlDifficultySelect = CtrlDifficultySelect.Instantiate(((Component)TitleTaskManager.GetPrefabFile().prefabCtrlDifficultySelect).GetComponent <CtrlDifficultySelect>(), TitleTaskManager.GetSharedPlace(), TitleTaskManager.GetKeyControl(), App.GetTitleManager().GetSelectableDifficulty(), OnDecideDifficulty, OnCancel);
            return(true);
        }
        protected override bool Run()
        {
            KeyControl keyControl = TitleTaskManager.GetKeyControl();

            if (keyControl.IsAnyKey)
            {
                this.SetupLeaveTimer();
            }
            this._clsState.OnUpdate(Time.get_deltaTime());
            return(TitleTaskManager.GetMode() == TitleTaskManagerMode.TitleTaskManagerMode_BEF || TitleTaskManager.GetMode() == TitleTaskManagerMode.SelectMode);
        }
Esempio n. 7
0
        public bool Run()
        {
            KeyControl keyControl = TitleTaskManager.GetKeyControl();

            if (keyControl.GetDown(KeyControl.KeyName.MARU) || keyControl.GetDown(KeyControl.KeyName.BATU) || keyControl.GetDown(KeyControl.KeyName.SHIKAKU) || keyControl.GetDown(KeyControl.KeyName.SANKAKU) || keyControl.GetDown(KeyControl.KeyName.START))
            {
                OnPress();
                return(true);
            }
            _uiPressAnyKey.alpha = (float)Math.Abs(Math.Sin(Time.time * _strParam.interval));
            return(_isPress);
        }
Esempio n. 8
0
        protected override bool Run()
        {
            KeyControl  keyControl  = TitleTaskManager.GetKeyControl();
            PSVitaMovie pSVitaMovie = TitleTaskManager.GetPSVitaMovie();

            if (this._isInputPossible && pSVitaMovie.isPlaying && (keyControl.GetDown(KeyControl.KeyName.MARU) || keyControl.GetDown(KeyControl.KeyName.START) || Input.get_touchCount() != 0))
            {
                this._isInputPossible = false;
                UIPanel maskPanel = TitleTaskManager.GetMaskPanel();
                maskPanel.get_transform().GetChild(0).GetComponent <UITexture>().color = Color.get_black();
                pSVitaMovie.ImmediateOnFinished();
            }
            return(TitleTaskManager.GetMode() == TitleTaskManagerMode.TitleTaskManagerMode_BEF || TitleTaskManager.GetMode() == TitleTaskManagerMode.TitleTaskManagerMode_ST);
        }
Esempio n. 9
0
        protected override bool Run()
        {
            KeyControl keyControl = TitleTaskManager.GetKeyControl();

            if (keyControl.IsAnyKey)
            {
                SetupLeaveTimer();
            }
            _clsState.OnUpdate(Time.deltaTime);
            if (TitleTaskManager.GetMode() != TitleTaskManagerMode.TitleTaskManagerMode_BEF)
            {
                return((TitleTaskManager.GetMode() == TitleTaskManagerMode.SelectMode) ? true : false);
            }
            return(true);
        }
 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());
 }
Esempio n. 11
0
        protected override bool Run()
        {
            KeyControl  keyControl  = TitleTaskManager.GetKeyControl();
            PSVitaMovie pSVitaMovie = TitleTaskManager.GetPSVitaMovie();

            if (_isInputPossible && pSVitaMovie.isPlaying && (keyControl.GetDown(KeyControl.KeyName.MARU) || keyControl.GetDown(KeyControl.KeyName.START) || Input.touchCount != 0))
            {
                _isInputPossible = false;
                UIPanel maskPanel = TitleTaskManager.GetMaskPanel();
                ((Component)maskPanel.transform.GetChild(0)).GetComponent <UITexture>().color = Color.black;
                pSVitaMovie.ImmediateOnFinished();
            }
            if (TitleTaskManager.GetMode() != TitleTaskManagerMode.TitleTaskManagerMode_BEF)
            {
                return((TitleTaskManager.GetMode() == TitleTaskManagerMode.TitleTaskManagerMode_ST) ? true : false);
            }
            return(true);
        }
Esempio n. 12
0
        private void OnDecideMode(SelectMode iMode)
        {
            UnityEngine.Object.Destroy(_ctrlTitleSelectMode.gameObject);
            Mem.Del(ref _ctrlTitleSelectMode);
            switch (iMode)
            {
            case SelectMode.Appointed:
                TitleTaskManager.ReqMode(TitleTaskManagerMode.NewGame);
                break;

            case SelectMode.Inheriting:
                Observable.FromCoroutine((UniRx.IObserver <AsyncOperation> observer) => TitleTaskManager.GotoLoadScene(observer)).Subscribe(delegate(AsyncOperation x)
                {
                    x.allowSceneActivation = true;
                }).AddTo(base.gameObject);
                break;
            }
        }
 private void OnDecideMode(SelectMode iMode)
 {
     Object.Destroy(this._ctrlTitleSelectMode.get_gameObject());
     Mem.Del <CtrlTitleSelectMode>(ref this._ctrlTitleSelectMode);
     if (iMode != SelectMode.Appointed)
     {
         if (iMode == SelectMode.Inheriting)
         {
             Observable.FromCoroutine <AsyncOperation>((IObserver <AsyncOperation> observer) => TitleTaskManager.GotoLoadScene(observer)).Subscribe(delegate(AsyncOperation x)
             {
                 x.set_allowSceneActivation(true);
             }).AddTo(base.get_gameObject());
         }
     }
     else
     {
         TitleTaskManager.ReqMode(TitleTaskManagerMode.NewGame);
     }
 }
Esempio n. 14
0
 public bool Run()
 {
     if (this._isInputPossible)
     {
         KeyControl keyControl = TitleTaskManager.GetKeyControl();
         if (keyControl.GetDown(KeyControl.KeyName.MARU))
         {
             this.DecideAnim();
         }
         else if (keyControl.GetDown(KeyControl.KeyName.DOWN))
         {
             this.PreparaNext(false);
         }
         else if (keyControl.GetDown(KeyControl.KeyName.UP))
         {
             this.PreparaNext(true);
         }
     }
     return(true);
 }
Esempio n. 15
0
 private bool InitSelectMode(object data)
 {
     _ctrlTitleSelectMode = CtrlTitleSelectMode.Instantiate(((Component)TitleTaskManager.GetPrefabFile().prefabCtrlTitleSelectMode).GetComponent <CtrlTitleSelectMode>(), TitleTaskManager.GetSharedPlace(), SetupLeaveTimer);
     _ctrlTitleSelectMode.Play(OnDecideMode);
     return(false);
 }
Esempio n. 16
0
 private void OnMovieFinished()
 {
     TitleTaskManager.ReqMode(TitleTaskManagerMode.SelectMode);
 }
Esempio n. 17
0
 private void OnCancel()
 {
     TitleTaskManager.ReqMode(TitleTaskManagerMode.SelectMode);
 }
Esempio n. 18
0
 private bool InitPressAnyKey(object data)
 {
     _uiPressAnyKey = UIPressAnyKey.Instantiate(((Component)TitleTaskManager.GetPrefabFile().prefabUIPressAnyKey).GetComponent <UIPressAnyKey>(), TitleTaskManager.GetSharedPlace(), OnPressAnyKeyFinished);
     return(false);
 }
Esempio n. 19
0
 protected override bool Run()
 {
     this._ctrlDifficultySelect.Run();
     return(TitleTaskManager.GetMode() == TitleTaskManagerMode.TitleTaskManagerMode_BEF || TitleTaskManager.GetMode() == TitleTaskManagerMode.NewGame);
 }
 private bool InitPressAnyKey(object data)
 {
     this._uiPressAnyKey = UIPressAnyKey.Instantiate(TitleTaskManager.GetPrefabFile().prefabUIPressAnyKey.GetComponent <UIPressAnyKey>(), TitleTaskManager.GetSharedPlace(), new Action(this.OnPressAnyKeyFinished));
     return(false);
 }
 private bool InitSelectMode(object data)
 {
     this._ctrlTitleSelectMode = CtrlTitleSelectMode.Instantiate(TitleTaskManager.GetPrefabFile().prefabCtrlTitleSelectMode.GetComponent <CtrlTitleSelectMode>(), TitleTaskManager.GetSharedPlace(), new Action(this.SetupLeaveTimer));
     this._ctrlTitleSelectMode.Play(new Action <SelectMode>(this.OnDecideMode));
     return(false);
 }