Пример #1
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);
     });
 }
Пример #2
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);
 }
 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());
     });
 }
Пример #4
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);
        }