private void Awake()
 {
     this._isMove     = false;
     this._dicButtons = new Dictionary <CtrlPartnerSelect.ButtonIndex, UIButton>();
     using (IEnumerator enumerator = Enum.GetValues(typeof(CtrlPartnerSelect.ButtonIndex)).GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             CtrlPartnerSelect.ButtonIndex buttonIndex = (CtrlPartnerSelect.ButtonIndex)((int)enumerator.get_Current());
             this._dicButtons.Add(buttonIndex, base.get_transform().FindChild("Button_" + buttonIndex.ToString()).GetComponent <UIButton>());
             this._dicButtons.get_Item(buttonIndex).onClick = Util.CreateEventDelegateList(this, "press_Button", buttonIndex);
         }
     }
     this._dicShipParts = new Dictionary <CtrlPartnerSelect.ShipPartsIndex, UITexture>();
     using (IEnumerator enumerator2 = Enum.GetValues(typeof(CtrlPartnerSelect.ShipPartsIndex)).GetEnumerator())
     {
         while (enumerator2.MoveNext())
         {
             CtrlPartnerSelect.ShipPartsIndex shipPartsIndex = (CtrlPartnerSelect.ShipPartsIndex)((int)enumerator2.get_Current());
             this._dicShipParts.Add(shipPartsIndex, base.get_transform().FindChild("Ship_" + shipPartsIndex.ToString()).GetComponent <UITexture>());
         }
     }
     this._iStarterType  = CtrlStarterSelect.StarterType.Ex;
     this._nSelectedId   = 0;
     this._clsSwipeEvent = GameObject.Find("EventArea").GetComponent <UIDisplaySwipeEventRegion>();
     this._clsSwipeEvent.SetOnSwipeActionJudgeCallBack(new UIDisplaySwipeEventRegion.SwipeJudgeDelegate(this.OnSwipe));
     this._clsSwipeEvent.SetEventCatchCamera(StartupTaskManager.GetPSVitaMovie().GetComponent <Camera>());
     this._isDecide = false;
     this.panel.widgetsAreStatic = true;
 }
Пример #2
0
        private bool UpdatePartnerSelect(object data)
        {
            KeyControl keyControl = StartupTaskManager.GetKeyControl();

            if (keyControl.GetDown(KeyControl.KeyName.RIGHT))
            {
                _ctrlPartnerSelect.press_Button(CtrlPartnerSelect.ButtonIndex.R);
            }
            else if (keyControl.GetDown(KeyControl.KeyName.LEFT))
            {
                _ctrlPartnerSelect.press_Button(CtrlPartnerSelect.ButtonIndex.L);
            }
            else
            {
                if (keyControl.GetDown(KeyControl.KeyName.MARU))
                {
                    return(_ctrlPartnerSelect.OnDecidePartnerShip());
                }
                if (keyControl.GetDown(KeyControl.KeyName.BATU))
                {
                    return(_ctrlPartnerSelect.OnCancel());
                }
            }
            return(false);
        }
Пример #3
0
 protected override bool Run()
 {
     if (this._clsState != null)
     {
         this._clsState.OnUpdate(Time.get_deltaTime());
     }
     return(StartupTaskManager.GetMode() == StartupTaskManager.StartupTaskManagerMode.StartupTaskManagerMode_BEF || StartupTaskManager.GetMode() == StartupTaskManager.StartupTaskManagerMode.FirstShipSelect);
 }
Пример #4
0
        private bool InitPartnerSelect(object data)
        {
            UIStartupHeader startupHeader = StartupTaskManager.GetStartupHeader();

            startupHeader.SetMessage("初期艦選択");
            _ctrlPartnerSelect.SetActive(isActive: true);
            _ctrlPartnerSelect.Init(OnPartnerShipSelectFinished, OnPartnerShipCancel);
            return(false);
        }
        private void OnFinishedMovie()
        {
            FirstMeetingManager fmm = StartupTaskManager.GetFirstMeetingManager();

            Observable.FromCoroutine(() => fmm.Play(_nMstId, delegate
            {
                Dlg.Call(ref _actOnFinished);
            })).Subscribe();
        }
Пример #6
0
        private bool InitPartnerSelect(object data)
        {
            UIStartupHeader startupHeader = StartupTaskManager.GetStartupHeader();

            startupHeader.SetMessage("初期艦選択");
            this._ctrlPartnerSelect.SetActive(true);
            this._ctrlPartnerSelect.Init(new Action <ShipModelMst>(this.OnPartnerShipSelectFinished), new Action(this.OnPartnerShipCancel));
            return(false);
        }
Пример #7
0
 private void OnPartnerShipSelectFinished(ShipModelMst partnerShip)
 {
     XorRandom.Init(0u);
     StartupTaskManager.GetData().PartnerShipID = partnerShip.MstId;
     Observable.TimerFrame(10, FrameCountType.EndOfFrame).Subscribe(delegate
     {
         _ctrlPartnerSelect.Hide();
         StartupTaskManager.ReqMode(StartupTaskManager.StartupTaskManagerMode.PictureStoryShow);
     });
 }
Пример #8
0
        private bool InitStarterSelect(object data)
        {
            UIStartupHeader startupHeader = StartupTaskManager.GetStartupHeader();

            startupHeader.SetMessage("ゲ\u30fcム開始");
            _ctrlStarterSelect.Init(OnStarterSelected, OnStarterSelectCancel);
            _ctrlPartnerSelect.SetActive(isActive: false);
            StartCache(null);
            return(false);
        }
Пример #9
0
        private bool InitStarterSelect(object data)
        {
            UIStartupHeader startupHeader = StartupTaskManager.GetStartupHeader();

            startupHeader.SetMessage("ゲーム開始");
            this._ctrlStarterSelect.Init(new Action <CtrlStarterSelect.StarterType>(this.OnStarterSelected), new Action(this.OnStarterSelectCancel));
            this._ctrlPartnerSelect.SetActive(false);
            this.StartCache(null);
            return(false);
        }
Пример #10
0
        protected override bool Run()
        {
            KeyControl keyControl = StartupTaskManager.GetKeyControl();

            Main.Update();
            if (Ime.IsDialogOpen)
            {
                return(true);
            }
            if (!keyControl.GetDown(KeyControl.KeyName.SELECT))
            {
                if (keyControl.GetDown(KeyControl.KeyName.MARU))
                {
                    OnClickInputLabel();
                }
                else
                {
                    if (keyControl.GetDown(KeyControl.KeyName.START))
                    {
                        if (_uiNameInput.value == string.Empty || _uiNameInput.value.Replace(" ", string.Empty).Replace("\u3000", string.Empty) == string.Empty)
                        {
                            return(true);
                        }
                        if (Utils.ChkNGWard(_uiNameInput.value))
                        {
                            _ANI.Play("feather_ng");
                            return(true);
                        }
                        _uiNameInput.isSelected = false;
                        _onNameSubmit();
                        return(false);
                    }
                    if (keyControl.GetDown(KeyControl.KeyName.BATU) && !StartupTaskManager.IsInheritStartup())
                    {
                        _uiNameInput.isSelected = false;
                        SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
                        {
                            Application.LoadLevel(Generics.Scene.Title.ToString());
                            this.DelayActionFrame(2, delegate
                            {
                                SingletonMonoBehaviour <FadeCamera> .Instance.FadeIn(0.2f, null);
                            });
                        });

                        return(true);
                    }
                }
            }
            if (StartupTaskManager.GetMode() != StartupTaskManager.StartupTaskManagerMode.StartupTaskManagerMode_BEF)
            {
                return((StartupTaskManager.GetMode() == StartupTaskManager.StartupTaskManagerMode.StartupTaskManagerMode_ST) ? true : false);
            }
            return(true);
        }
Пример #11
0
 private void _onNameSubmit()
 {
     this._uiNameInput.isSelected = false;
     if (this._uiNameInput.value == string.Empty || Utils.ChkNGWard(this._uiNameInput.value))
     {
         this._uiNameInput.value = "横須賀提督";
     }
     StartupTaskManager.GetData().AdmiralName = this._uiNameInput.value;
     this._uiPanel.SetActive(false);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     StartupTaskManager.ReqMode(StartupTaskManager.StartupTaskManagerMode.FirstShipSelect);
 }
Пример #12
0
 protected override bool Run()
 {
     if (_clsState != null)
     {
         _clsState.OnUpdate(Time.deltaTime);
     }
     if (StartupTaskManager.GetMode() != StartupTaskManager.StartupTaskManagerMode.StartupTaskManagerMode_BEF)
     {
         return((StartupTaskManager.GetMode() == StartupTaskManager.StartupTaskManagerMode.FirstShipSelect) ? true : false);
     }
     return(true);
 }
Пример #13
0
        public bool Init(Action <StarterType> onSelectStarter, Action onCancel)
        {
            UIStartupNavigation navigation = StartupTaskManager.GetNavigation();

            navigation.SetNavigationInStarterSelect();
            base.transform.localScaleOne();
            _actOnSelectStarter = onSelectStarter;
            _actOnCancel        = onCancel;
            _iSelectType        = StarterType.Ex;
            ChangeFocus(_iSelectType);
            return(true);
        }
Пример #14
0
        public bool Init(Action <CtrlStarterSelect.StarterType> onSelectStarter, Action onCancel)
        {
            UIStartupNavigation navigation = StartupTaskManager.GetNavigation();

            navigation.SetNavigationInStarterSelect();
            base.get_transform().localScaleOne();
            this._actOnSelectStarter = onSelectStarter;
            this._actOnCancel        = onCancel;
            this._iSelectType        = CtrlStarterSelect.StarterType.Ex;
            this.ChangeFocus(this._iSelectType);
            return(true);
        }
        private bool InitPictureStoryShowConfirm(object data)
        {
            UIStartupHeader     startupHeader = StartupTaskManager.GetStartupHeader();
            UIStartupNavigation navigation    = StartupTaskManager.GetNavigation();

            startupHeader.SetMessage("チュ\u30fcトリアル");
            navigation.Hide(null);
            _uiTutorialConfirmDialog = UITutorialConfirmDialog.Instantiate(((Component)StartupTaskManager.GetPrefabFile().prefabUITutorialConfirmDialog).GetComponent <UITutorialConfirmDialog>(), StartupTaskManager.GetSharedPlace());
            _uiTutorialConfirmDialog.Init(OnPictureStoryShowConfirmCancel, OnPictureStoryShowConfirmDecide);
            _uiTutorialConfirmDialog.Open(null);
            return(false);
        }
        private void PlayMovie()
        {
            PSVitaMovie movie = StartupTaskManager.GetPSVitaMovie();

            movie.SetLooping(0).SetMode(0).SetOnWarningID(new Action(this.OnFinishedMovie)).SetOnPlay(delegate
            {
                SoundUtils.StopFadeBGM(0.2f, null);
            }).SetOnBuffering(delegate
            {
                Observable.Timer(TimeSpan.FromMilliseconds((double)(movie.movieDuration / 2L))).Subscribe(delegate(long _)
                {
                    this._uiOverlay.color = Color.get_white();
                });
            }).SetOnFinished(new Action(this.OnFinishedMovie)).Play(MovieFileInfos.Startup.GetFilePath());
        }
 private void OnStartupAllFinished()
 {
     SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(1f, delegate
     {
         StartupTaskManager.GetStartupHeader().transform.localScaleZero();
         StartupData data = StartupTaskManager.GetData();
         App.CreateSaveDataNInitialize(data.AdmiralName, data.PartnerShipID, data.Difficlty, data.isInherit);
         SingletonMonoBehaviour <SoundManager> .Instance.PlayVoice(Resources.Load("Sounds/Voice/kc9999/" + $"{XorRandom.GetILim(206, 211):D2}") as AudioClip, 0);
         GameObject.Find("BG Panel").transform.localScale                = Vector3.zero;
         GameObject.Find("StartupTaskManager").transform.localScale      = Vector3.zero;
         SingletonMonoBehaviour <AppInformation> .Instance.NextLoadType  = AppInformation.LoadType.Ship;
         SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene = Generics.Scene.Strategy;
         SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading  = false;
         Application.LoadLevel(Generics.Scene.LoadingScene.ToString());
     });
 }
        private bool UpdatePictureStoryShowConfirm(object data)
        {
            KeyControl keyControl = StartupTaskManager.GetKeyControl();

            if (keyControl.GetDown(KeyControl.KeyName.MARU))
            {
                _uiTutorialConfirmDialog.OnDecide();
                return(true);
            }
            if (keyControl.GetDown(KeyControl.KeyName.BATU))
            {
                _uiTutorialConfirmDialog.OnCancel();
                return(true);
            }
            return(false);
        }
        private IEnumerator PlayDesctiption()
        {
            KeyControl input   = StartupTaskManager.GetKeyControl();
            bool       isWait2 = true;

            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            PlayDescriotionVoice(nowPage);
            _uiGearButton.onClick.Clear();
            _uiGearButton.onClick.Add(new EventDelegate(delegate
            {
                isWait2 = false;
            }));
            while (isWait2)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isWait2 = false;
                }
                yield return(null);
            }
            Utils.StopDescriptionVoice();
            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            isWait2 = true;
            _uiGearButton.onClick.Clear();
            _uiGearButton.onClick.Add(new EventDelegate(delegate
            {
                isWait2 = false;
            }));
            while (isWait2)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isWait2 = false;
                }
                yield return(null);
            }
            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            nowPage++;
        }
 private CtrlPictureStoryShow VitualCtor(Action onFinished)
 {
     this.nowPage              = 0;
     this._actOnFinished       = onFinished;
     this._uiBackground.alpha  = 0f;
     this._uiDescription.alpha = 0f;
     this._uiGearButton.GetComponent <UISprite>().alpha = 0f;
     this._uiGearButton.set_enabled(false);
     this._traPartnerShip = StartupTaskManager.GetPartnerSelect().get_transform();
     this._uiStartupFairy.Startup();
     this._listSheets.ForEach(delegate(CtrlPictureStoryShow.UISheet x)
     {
         x.Init();
     });
     Observable.FromCoroutine <bool>((IObserver <bool> observer) => this.PlayPictureStoryShow(observer)).Subscribe(delegate(bool _)
     {
         this.HidePictureStoryShow(new Action(this.OnFinished));
     });
     return(this);
 }
 private CtrlPictureStoryShow VitualCtor(Action onFinished)
 {
     nowPage              = 0;
     _actOnFinished       = onFinished;
     _uiBackground.alpha  = 0f;
     _uiDescription.alpha = 0f;
     _uiGearButton.GetComponent <UISprite>().alpha = 0f;
     _uiGearButton.enabled = false;
     _traPartnerShip       = StartupTaskManager.GetPartnerSelect().transform;
     _uiStartupFairy.Startup();
     _listSheets.ForEach(delegate(UISheet x)
     {
         x.Init();
     });
     Observable.FromCoroutine((UniRx.IObserver <bool> observer) => PlayPictureStoryShow(observer)).Subscribe(delegate
     {
         HidePictureStoryShow(OnFinished);
     });
     return(this);
 }
Пример #22
0
        protected override bool Init()
        {
            Ime.add_OnGotIMEDialogResult(new Messages.EventHandler(this.OnGotIMEDialogResult));
            Main.Initialise();
            Utils.PlayAdmiralNameVoice();
            UIStartupNavigation navigation = StartupTaskManager.GetNavigation();

            navigation.SetNavigationInAdmiralInfo(StartupTaskManager.IsInheritStartup());
            Util.FindParentToChild <UIPanel>(ref this._uiPanel, base.scenePrefab, "InfoPanel");
            if (this._uiNameInput.onSubmit != null)
            {
                this._uiNameInput.onSubmit.Clear();
            }
            EventDelegate.Add(this._uiNameInput.onSubmit, new EventDelegate.Callback(this._onNameSubmit));
            if (this._uiNameInput.onChange != null)
            {
                this._uiNameInput.onChange.Clear();
            }
            this._uiNameInput.onChange.Add(new EventDelegate(delegate
            {
                this.ChkButtonState();
            }));
            if (this._uiDecideButton.onClick != null)
            {
                this._uiDecideButton.onClick.Clear();
            }
            this._uiDecideButton.onClick.Add(new EventDelegate(delegate
            {
                this._onNameSubmit();
            }));
            this._uiDecideButton.state = ((!(this._uiNameInput.value == string.Empty)) ? UIButtonColor.State.Normal : UIButtonColor.State.Disabled);
            this._uiPanel.SetActive(true);
            this._ANI           = GameObject.Find("AdmiralInfoScene/InfoPanel/anchor/Feather").GetComponent <Animation>();
            this._shipSelected  = false;
            this._shipCancelled = false;
            this.ChkButtonState();
            StartupTaskManager.GetStartupHeader().SetMessage("提督名入力");
            this._uiNameInput.isSelected = true;
            return(true);
        }
Пример #23
0
 private void Awake()
 {
     _isMove     = false;
     _dicButtons = new Dictionary <ButtonIndex, UIButton>();
     foreach (int value in Enum.GetValues(typeof(ButtonIndex)))
     {
         _dicButtons.Add((ButtonIndex)value, ((Component)base.transform.FindChild("Button_" + ((ButtonIndex)value).ToString())).GetComponent <UIButton>());
         _dicButtons[(ButtonIndex)value].onClick = Util.CreateEventDelegateList(this, "press_Button", (ButtonIndex)value);
     }
     _dicShipParts = new Dictionary <ShipPartsIndex, UITexture>();
     foreach (int value2 in Enum.GetValues(typeof(ShipPartsIndex)))
     {
         _dicShipParts.Add((ShipPartsIndex)value2, ((Component)base.transform.FindChild("Ship_" + ((ShipPartsIndex)value2).ToString())).GetComponent <UITexture>());
     }
     _iStarterType  = CtrlStarterSelect.StarterType.Ex;
     _nSelectedId   = 0;
     _clsSwipeEvent = GameObject.Find("EventArea").GetComponent <UIDisplaySwipeEventRegion>();
     _clsSwipeEvent.SetOnSwipeActionJudgeCallBack(OnSwipe);
     _clsSwipeEvent.SetEventCatchCamera(StartupTaskManager.GetPSVitaMovie().GetComponent <Camera>());
     _isDecide = false;
     panel.widgetsAreStatic = true;
 }
        public bool Run()
        {
            KeyControl keyControl = StartupTaskManager.GetKeyControl();

            Main.Update();
            if (keyControl.GetDown(KeyControl.KeyName.SELECT))
            {
                OnNameSubmit();
                return(true);
            }
            if (keyControl.GetDown(KeyControl.KeyName.MARU))
            {
                if (_uiNameInput.value == string.Empty || _uiNameInput.value.Replace(" ", string.Empty).Replace("\u3000", string.Empty) == string.Empty)
                {
                    _strEditName       = string.Empty;
                    _uiNameInput.value = string.Empty;
                    OnClickInputLabel();
                }
                else if (Utils.ChkNGWard(_uiNameInput.value))
                {
                    _uiNameInput.value = string.Empty;
                    _animFeather.Play();
                    OnClickInputLabel();
                }
                else
                {
                    _uiNameInput.isSelected = false;
                    OnNameSubmit();
                }
            }
            else if (keyControl.GetDown(KeyControl.KeyName.BATU))
            {
                Dlg.Call(ref _actOnCancel);
            }
            return(true);
        }
Пример #25
0
        private bool UpdateStarterSelect(object data)
        {
            KeyControl keyControl = StartupTaskManager.GetKeyControl();

            if (keyControl.GetDown(KeyControl.KeyName.MARU))
            {
                _ctrlStarterSelect.OnClickStarter(_ctrlStarterSelect.selectType);
                return(true);
            }
            if (keyControl.GetDown(KeyControl.KeyName.BATU))
            {
                _ctrlStarterSelect.OnCancel();
                return(true);
            }
            if (keyControl.GetDown(KeyControl.KeyName.LEFT))
            {
                _ctrlStarterSelect.PreparaNext(isFoward: false);
            }
            else if (keyControl.GetDown(KeyControl.KeyName.RIGHT))
            {
                _ctrlStarterSelect.PreparaNext(isFoward: true);
            }
            return(false);
        }
        private IEnumerator PlayPictureStoryShow(UniRx.IObserver <bool> observer)
        {
            KeyControl input            = StartupTaskManager.GetKeyControl();
            bool       isAnimationWait9 = true;

            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            _listSheets[0].Show(delegate
            {
                isAnimationWait9 = false;
            });

            UISprite gear = this._uiGearButton.GetComponent <UISprite>();

            LeanTweenExtesntions.LTValue(from : _uiGearButton.GetComponent <UISprite>().alpha, self : _uiGearButton.transform, to : 1f, time : _strParams.showHideMessageWindowTime).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x)
            {
                gear.alpha = x;
            })
            .setOnComplete((Action) delegate
            {
                this._uiGearButton.enabled = true;
            });
            while (isAnimationWait9)
            {
                yield return(null);
            }
            isAnimationWait9 = true;
            _uiStartupFairy.Show(UIStartupFairy.FairyType.Tails, UIStartupFairy.FairyState.Move, delegate
            {
                this._uiGearButton.onClick.Clear();
                this._uiGearButton.onClick.Add(new EventDelegate(delegate
                {
                    isAnimationWait9 = false;
                }));
            });
            PlayDescriotionVoice(0);
            while (isAnimationWait9)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isAnimationWait9 = false;
                }
                yield return(null);
            }
            _uiGearButton.onClick.Clear();
            _uiStartupFairy.ImmediateIdle();
            Utils.StopDescriptionVoice();
            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            isAnimationWait9 = true;
            _uiStartupFairy.ShowBaloon(0, new System.Tuple <Vector3, Vector3>(_strParams.fairyBalloonSize[0], _strParams.fairyBalloonPos[0]), null);
            _uiStartupFairy.PlayVoice(0, null);
            _uiGearButton.onClick.Clear();
            _uiGearButton.onClick.Add(new EventDelegate(delegate
            {
                isAnimationWait9 = false;
            }));
            while (isAnimationWait9)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isAnimationWait9 = false;
                }
                yield return(null);
            }
            _uiGearButton.onClick.Clear();
            _uiStartupFairy.StopVoice();
            _uiStartupFairy.Hide(null);
            yield return(Observable.Timer(TimeSpan.FromSeconds(0.75)).StartAsCoroutine());

            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            isAnimationWait9 = true;
            _listSheets[1].Show(delegate
            {
                isAnimationWait9 = false;
            });
            while (isAnimationWait9)
            {
                yield return(null);
            }
            isAnimationWait9 = true;
            _uiStartupFairy.Show(UIStartupFairy.FairyType.Ahoge, UIStartupFairy.FairyState.Move, delegate
            {
                this._uiGearButton.onClick.Add(new EventDelegate(delegate
                {
                    isAnimationWait9 = false;
                }));
            });
            PlayDescriotionVoice(1);
            while (isAnimationWait9)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isAnimationWait9 = false;
                }
                yield return(null);
            }
            _uiGearButton.onClick.Clear();
            _uiStartupFairy.ImmediateIdle();
            Utils.StopDescriptionVoice();
            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            isAnimationWait9 = true;
            _uiStartupFairy.ShowBaloon(1, new System.Tuple <Vector3, Vector3>(_strParams.fairyBalloonSize[1], _strParams.fairyBalloonPos[1]), null);
            _uiStartupFairy.PlayVoice(1, null);
            _uiGearButton.onClick.Clear();
            _uiGearButton.onClick.Add(new EventDelegate(delegate
            {
                isAnimationWait9 = false;
            }));
            while (isAnimationWait9)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isAnimationWait9 = false;
                }
                yield return(null);
            }
            _uiGearButton.onClick.Clear();
            _uiStartupFairy.StopVoice();
            _uiStartupFairy.Hide(null);
            yield return(Observable.Timer(TimeSpan.FromSeconds(0.75)).StartAsCoroutine());

            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            isAnimationWait9 = true;
            _listSheets[2].Show(delegate
            {
                isAnimationWait9 = false;
            });
            while (isAnimationWait9)
            {
                yield return(null);
            }
            isAnimationWait9 = true;
            _uiStartupFairy.Show(UIStartupFairy.FairyType.Braid, UIStartupFairy.FairyState.Idle, delegate
            {
                this._uiGearButton.onClick.Add(new EventDelegate(delegate
                {
                    isAnimationWait9 = false;
                }));
            });
            PlayDescriotionVoice(2);
            while (isAnimationWait9)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isAnimationWait9 = false;
                }
                yield return(null);
            }
            _uiGearButton.onClick.Clear();
            _uiStartupFairy.ImmediateIdle();
            Utils.StopDescriptionVoice();
            yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine());

            isAnimationWait9 = true;
            _uiStartupFairy.ShowBaloon(2, new System.Tuple <Vector3, Vector3>(_strParams.fairyBalloonSize[2], _strParams.fairyBalloonPos[2]), null);
            _uiStartupFairy.PlayVoice(2, null);
            _uiGearButton.onClick.Clear();
            _uiGearButton.onClick.Add(new EventDelegate(delegate
            {
                isAnimationWait9 = false;
            }));
            while (isAnimationWait9)
            {
                if (input.GetDown(KeyControl.KeyName.MARU))
                {
                    isAnimationWait9 = false;
                }
                yield return(null);
            }
            _uiGearButton.onClick.Clear();
            _uiStartupFairy.StopVoice();
            _uiStartupFairy.Hide(null);
            yield return(Observable.Timer(TimeSpan.FromSeconds(0.75)).StartAsCoroutine());

            observer.OnNext(value: true);
            observer.OnCompleted();
        }
Пример #27
0
 public void Setup()
 {
     this._uiDecideButton.state = UIButtonColor.State.Disabled;
     this._uiNameInput.value    = StartupTaskManager.GetData().AdmiralName;
 }
        private bool InitSecretaryShipMovie(object data)
        {
            ProdSecretaryShipMovie prodSecretaryShipMovie = ProdSecretaryShipMovie.Instantiate(((Component)StartupTaskManager.GetPrefabFile().prefabProdSecretaryShipMovie).GetComponent <ProdSecretaryShipMovie>(), StartupTaskManager.GetSharedPlace(), StartupTaskManager.GetData().PartnerShipID);

            prodSecretaryShipMovie.Play(OnStartupAllFinished);
            return(false);
        }
 private bool InitPictureStoryShowTutorial(object data)
 {
     _ctrlPictureStoryShow = CtrlPictureStoryShow.Instantiate(((Component)StartupTaskManager.GetPrefabFile().prefabCtrlPictureStoryShow).GetComponent <CtrlPictureStoryShow>(), StartupTaskManager.GetSharedPlace(), OnPictureStoryShowFinished);
     return(false);
 }
Пример #30
0
 private void OnStarterSelectCancel()
 {
     StartupTaskManager.ReqMode(StartupTaskManager.StartupTaskManagerMode.StartupTaskManagerMode_ST);
 }