private void OnCompleteSlotItemBreakAnimation()
        {
            bool flag = this.mStateManager.CurrentState == TaskArsenalListManager.State.SlotItemDestroying;

            if (flag)
            {
                SingletonMonoBehaviour <UIPortFrame> .Instance.UpdateHeaderInfo(this.mArsenalManager);

                SlotitemModel[] unsetSlotitems = this.mArsenalManager.GetUnsetSlotitems();
                this.UpdateHaikiInfo();
                this.ItemScroll.Refresh(unsetSlotitems);
                this.ItemScroll.SetKeyController(this.KeyController);
                this.ItemScroll.StartControl();
                this.CloseHaikiDialog();
                this.mStateManager.PopState();
                if (this.mStateManager.CurrentState == TaskArsenalListManager.State.SlotItemDestroyConfirm)
                {
                    this.mStateManager.PopState();
                }
                if (this.mStateManager.CurrentState == TaskArsenalListManager.State.SlotItemSelect)
                {
                    this.mStateManager.ResumeState();
                }
                TrophyUtil.Unlock_Material();
            }
        }
Example #2
0
 private void OnDestroy()
 {
     TrophyUtil.Unlock_Material();
     Mem.DelIDisposableSafe <SortieBattlePrefabFile>(ref this._clsSortieBattlePrefabFile);
     Mem.Del <Camera>(ref this._camTransitionCamera);
     Mem.Del <KeyControl>(ref SortieBattleTaskManager._clsInput);
     Mem.Del <ShipRecoveryType>(ref SortieBattleTaskManager._iRecoveryType);
     if (SortieBattleTaskManager._clsMapManager != null)
     {
         SortieBattleTaskManager._clsMapManager.MapEnd();
     }
     Mem.Del <MapManager>(ref SortieBattleTaskManager._clsMapManager);
     if (SortieBattleTaskManager._clsTasks != null)
     {
         SortieBattleTaskManager._clsTasks.UnInit();
     }
     Mem.Del <SceneTasksMono>(ref SortieBattleTaskManager._clsTasks);
     Mem.Del <SortieBattleMode>(ref SortieBattleTaskManager._iMode);
     Mem.Del <SortieBattleMode>(ref SortieBattleTaskManager._iModeReq);
     if (this._clsSortieMapTaskManager != null)
     {
         this._clsSortieMapTaskManager.Terminate();
     }
     Mem.Del <SortieMapTaskManager>(ref this._clsSortieMapTaskManager);
     Mem.Del <BattleTaskManager>(ref this._clsBattleTaskManager);
     Mem.Del <BattleCutManager>(ref this._clsBattleCutManager);
     Mst_DataManager.Instance.PurgeUIBattleMaster();
     Mem.Del <SortieBattleTaskManager>(ref SortieBattleTaskManager.instance);
 }
 public void Play()
 {
     mMissionResultStatus.PlayShowBanners(delegate
     {
         mMissionJudgeCutIn.SetOnFinishedAnimationListener(delegate
         {
             TrophyUtil.Unlock_UserLevel();
             TrophyUtil.Unlock_Material();
             mKeyController.IsRun = true;
             StartCoroutine(WaitForKeyOrTouch(mKeyController, delegate
             {
                 mKeyController.ClearKeyAll();
                 mMissionJudgeCutIn.SetActive(isActive: false);
                 mMissionResultStatus.PlayShowBannersExp(null);
                 mMissionResultBonus.Play(delegate
                 {
                     mTransform_TouchControlArea.SetActive(isActive: true);
                     mKeyController.IsRun = true;
                     StartCoroutine(WaitForKeyOrTouch(mKeyController, delegate
                     {
                         mKeyController.IsRun = true;
                         if (mOnSelectNextAction != null)
                         {
                             mOnSelectNextAction();
                         }
                     }));
                 });
             }));
         });
         mMissionJudgeCutIn.Play();
     });
 }
Example #4
0
 public void StartAnimation(Action callback)
 {
     TrophyUtil.Unlock_UserLevel();
     _actCallback = callback;
     Observable.Timer(TimeSpan.FromSeconds(0.800000011920929)).Subscribe(delegate
     {
         _clsResultFrame.Show();
         _clsShips.Show();
     }).AddTo(base.gameObject);
     Observable.Timer(TimeSpan.FromSeconds(2.0)).Subscribe(delegate
     {
         StartHPBarAnim();
         _clsShips.resultShips[0].act = delegate
         {
             Observable.Timer(TimeSpan.FromSeconds(1.0)).Subscribe(delegate
             {
                 _clsShips.resultShips[_clsMVPShip.index].ShowMVPIcon();
                 StartEXPBarAnim();
                 isAnimEnd = true;
                 UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();
                 navigation.SetNavigationInResult();
                 navigation.Show(0.2f, null);
             });
         };
     }).AddTo(base.gameObject);
 }
        private void OnCompleteShipBreakAnimation()
        {
            bool flag = this.mStateManager.CurrentState == TaskArsenalListManager.State.ShipDestroying;

            if (flag)
            {
                SingletonMonoBehaviour <UIPortFrame> .Instance.UpdateHeaderInfo(this.mArsenalManager);

                ShipModel[] shipList = this.mArsenalManager.GetShipList();
                this.UpdateKaitaiInfo(null);
                int focusModelIndex = this.ShipScroll.GetFocusModelIndex();
                this.ShipScroll.Refresh(shipList);
                this.ShipScroll.SetKeyController(this.KeyController);
                this.ShipScroll.StartControl();
                this.CloseShipDialog();
                this.mStateManager.PopState();
                if (this.mStateManager.CurrentState == TaskArsenalListManager.State.ShipDestroyConfirm)
                {
                    this.mStateManager.PopState();
                }
                if (this.mStateManager.CurrentState == TaskArsenalListManager.State.ShipSelect)
                {
                    this.mStateManager.ResumeState();
                }
                TrophyUtil.Unlock_Material();
            }
        }
Example #6
0
 private void OnDestroy()
 {
     TrophyUtil.Unlock_Material();
     Mem.DelIDisposableSafe(ref _clsSortieBattlePrefabFile);
     Mem.Del(ref _camTransitionCamera);
     Mem.Del(ref _clsInput);
     Mem.Del(ref _iRecoveryType);
     if (_clsMapManager != null)
     {
         _clsMapManager.MapEnd();
     }
     Mem.Del(ref _clsMapManager);
     if (_clsTasks != null)
     {
         _clsTasks.UnInit();
     }
     Mem.Del(ref _clsTasks);
     Mem.Del(ref _iMode);
     Mem.Del(ref _iModeReq);
     if (_clsSortieMapTaskManager != null)
     {
         _clsSortieMapTaskManager.Terminate();
     }
     Mem.Del(ref _clsSortieMapTaskManager);
     Mem.Del(ref _clsBattleTaskManager);
     Mem.Del(ref _clsBattleCutManager);
     Mst_DataManager.Instance.PurgeUIBattleMaster();
     Mem.Del(ref instance);
 }
Example #7
0
        private IEnumerator OnReciveRewardMaterials(IReward_Material[] materials)
        {
            TrophyUtil.Unlock_Material();
            bool recived = false;
            UIGetRewardDialog rewardMateralsDialog = Util.Instantiate(mPrefabUIDutyRewardMaterialsDialog.gameObject, mModalCamera.gameObject).GetComponent <UIGetRewardDialog>();
            List <IReward>    rewardMaterials      = new List <IReward>();

            foreach (IReward_Material material in materials)
            {
                rewardMaterials.Add(material);
            }
            IReward[] rewards = rewardMaterials.ToArray();
            rewardMateralsDialog.Initialize(rewards);
            rewardMateralsDialog.SetOnDialogClosedCallBack(delegate
            {
                recived = true;
                rewardMateralsDialog.Close();
                UnityEngine.Object.Destroy(rewardMateralsDialog.gameObject);
            });
            KeyControl rewardDialogKeyController = rewardMateralsDialog.Show();

            ChangeKeyController(rewardDialogKeyController);
            while (!recived)
            {
                yield return(new WaitForSeconds(0.5f));
            }
        }
Example #8
0
 public void showMessage()
 {
     this._clsShipName.SetActive(true);
     this._clsSType.SetActive(true);
     this._clsShipName.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._clsShipName.get_gameObject(), string.Empty);
     this._clsSType.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._clsSType.get_gameObject(), string.Empty);
     TrophyUtil.Unlock_GetShip(this._clsRewardShip.Ship.MstId);
 }
 public void showMessage()
 {
     _clsShipName.SetActive(isActive: true);
     _clsSType.SetActive(isActive: true);
     _clsShipName.gameObject.SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, _clsShipName.gameObject, string.Empty);
     _clsSType.gameObject.SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, _clsSType.gameObject, string.Empty);
     TrophyUtil.Unlock_GetShip(_clsRewardShip.Ship.MstId);
 }
 private void startControl()
 {
     if (!this._isRebelion)
     {
         TrophyUtil.Unlock_At_AreaClear(this._clsMapManager.Map.AreaId);
     }
     this._isControl = true;
 }
Example #11
0
        private void OnStartSuccessRevampAnimation(RevampContext context)
        {
            _isTop = true;
            UIRevampIcon revampIcon = Util.Instantiate(mPrefab_RevampIcon.gameObject, base.gameObject).GetComponent <UIRevampIcon>();

            revampIcon.Initialize(context.GetBeforeSlotItemInfo().MstId, context.GetBeforeSlotItemInfo().Level, mCameraProduction);
            revampIcon.StartRevamp(context.GetAfterSlotItemInfo().MstId, context.GetAfterSlotItemInfo().Level, context.GetAfterSlotItemInfo().Name, delegate
            {
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
                mRevampAkashi.ChangeBodyTo(UIRevampAkashi.BodyType.Normal);
                _isAnimation = false;
                string empty = string.Empty;
                PlayAkashiVoice(mAudioClip_308);
                empty += "[000000]改修成功しました。";
                empty += "\n";
                empty += $"[329ad6]{mRevampContext.GetAfterSlotItemInfo().Name}[-]";
                mParticleSystem_SuccessStars.Play(false);
                if (SingletonMonoBehaviour <UIPortFrame> .exist())
                {
                    SingletonMonoBehaviour <UIPortFrame> .Instance.isColliderEnabled = true;
                }
                TrophyUtil.Unlock_AlbumSlotNum();
                if (mRevampContext.IsModelChange())
                {
                    SoundUtils.PlaySE(mAudioClip_SE_023);
                }
                else
                {
                    SoundUtils.PlaySE(mAudioClip_SE_021);
                }
                KeyControl keyController = mRevampInfoBalloon.SayMessage(empty, delegate
                {
                    if (mRevampContext.ConsortShip != null)
                    {
                        mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f);
                    }
                    mRevampInfoBalloon.alpha = 1f;
                    UnityEngine.Object.Destroy(revampIcon.gameObject);
                    mRevampInfoBalloon.SayMessage("[000000]どの装備の改修を試みますか?");
                    mRevampManager.GetDetail(mRevampContext.RevampRecipe.RecipeId, mRevampContext.GetBeforeSlotItemInfo().MemId);
                    RevampRecipeModel[] recipes = mRevampManager.GetRecipes();
                    int num = 0;
                    RevampRecipeModel[] array = recipes;
                    foreach (RevampRecipeModel revampRecipeModel in array)
                    {
                        if (revampRecipeModel.RecipeId == mRevampContext.RevampRecipe.RecipeId)
                        {
                            break;
                        }
                        num++;
                    }
                    KeyControl keyController2 = (num > recipes.Length) ? ShowUIRevampRecipeList(0) : ShowUIRevampRecipeList(num);
                    ChangeFocusKeyController(keyController2);
                });
                ChangeFocusKeyController(keyController);
                mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f);
            });
        }
Example #12
0
        private void _compMarriageAnimation()
        {
            SingletonMonoBehaviour <Live2DModel> .Instance.Enable();

            SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(1f, delegate
            {
                TrophyUtil.Unlock_At_Marriage();
                Application.LoadLevel(Generics.Scene.PortTop.ToString());
            });
        }
Example #13
0
 public void Update()
 {
     if (mKeyController != null && enabledKey && mKeyController.keyState[1].down)
     {
         finish = true;
     }
     if (on)
     {
         if (Time.time - timer <= 1f)
         {
             fade.alpha += Mathf.Min(Time.deltaTime, 1f - fade.alpha);
         }
         if (Time.time - timer >= 1f && Time.time - timer <= 2f)
         {
             fade.alpha -= Mathf.Min(Time.deltaTime, fade.alpha);
         }
         if (Time.time - timer >= 1f && Time.time - timer <= 2.25f)
         {
             StripeExpand();
         }
         if (Time.time - timer >= 1.5f && Time.time - timer <= 2f)
         {
             ConvertCompleteSlide();
         }
         if (Time.time - timer >= 3.25f && Time.time - timer <= 4.5f)
         {
             StripeContract();
         }
         if (Time.time - timer >= 4.5f && Time.time - timer <= 5.5f)
         {
             BGExpand();
         }
         if (Time.time - timer >= 4.75f && Time.time - timer <= 6.25f)
         {
             ShipSlide();
         }
         if (Time.time - timer >= 8f && Time.time - timer <= 10f)
         {
             CardSwap();
         }
         if (finish)
         {
             finish = false;
             SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
             TrophyUtil.Unlock_GetShip(mTargetShipModelMst.MstId);
             SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
             {
                 isFinished = true;
             });
         }
     }
 }
 public void Update()
 {
     if (this.mKeyController != null && this.enabledKey && this.mKeyController.keyState.get_Item(1).down)
     {
         this.finish = true;
     }
     if (this.on)
     {
         if (Time.get_time() - this.timer <= 1f)
         {
             this.fade.alpha += Mathf.Min(Time.get_deltaTime(), 1f - this.fade.alpha);
         }
         if (Time.get_time() - this.timer >= 1f && Time.get_time() - this.timer <= 2f)
         {
             this.fade.alpha -= Mathf.Min(Time.get_deltaTime(), this.fade.alpha);
         }
         if (Time.get_time() - this.timer >= 1f && Time.get_time() - this.timer <= 2.25f)
         {
             this.StripeExpand();
         }
         if (Time.get_time() - this.timer >= 1.5f && Time.get_time() - this.timer <= 2f)
         {
             this.ConvertCompleteSlide();
         }
         if (Time.get_time() - this.timer >= 3.25f && Time.get_time() - this.timer <= 4.5f)
         {
             this.StripeContract();
         }
         if (Time.get_time() - this.timer >= 4.5f && Time.get_time() - this.timer <= 5.5f)
         {
             this.BGExpand();
         }
         if (Time.get_time() - this.timer >= 4.75f && Time.get_time() - this.timer <= 6.25f)
         {
             this.ShipSlide();
         }
         if (Time.get_time() - this.timer >= 8f && Time.get_time() - this.timer <= 10f)
         {
             this.CardSwap();
         }
         if (this.finish)
         {
             this.finish = false;
             SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
             TrophyUtil.Unlock_GetShip(this.mTargetShipModelMst.MstId);
             SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
             {
                 this.isFinished = true;
             });
         }
     }
 }
Example #15
0
        public IEnumerator OpenArea(int[] newOpenAreaID)
        {
            bool Finished = false;

            for (int i = 0; i < newOpenAreaID.Length; i++)
            {
                Debug.Log("OpenArea");
                Prefab_AreaOpenAnimation = Resources.Load <GameObject>("Prefabs/StrategyPrefab/StrategyTop/AreaEnterAnimation");
                yield return(StartCoroutine(Util.WaitEndOfFrames(3)));

                mapCamera.MoveToTargetTile(newOpenAreaID[i]);
                yield return(new WaitForSeconds(0.5f));

                tileManager.Tiles[newOpenAreaID[i]].SetVisibleDockIcons(isVisible: false);
                tileManager.Tiles[newOpenAreaID[i]].PlayAreaOpenAnimation(Prefab_AreaOpenAnimation, delegate
                {
                    Finished = true;
                });
                while (!Finished)
                {
                    yield return(new WaitForEndOfFrame());
                }
                tileManager.Tiles[newOpenAreaID[i]].UpdateDockIcons();
                tileManager.Tiles[newOpenAreaID[i]].SetVisibleDockIcons(isVisible: true);
                if (newOpenAreaID[i] == 17)
                {
                    Red_Sea.SetActive(true);
                    TweenAlpha.Begin(Red_Sea, 3f, 1f);
                    SoundUtils.PlaySE(SEFIleInfos.SE_041);
                    yield return(new WaitForSeconds(4f));
                }
                TrophyUtil.Unlock_ReOpenMap();
                Finished = false;
            }
            yield return(new WaitForEndOfFrame());

            mapCamera.MoveToTargetTile(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID);
            yield return(new WaitForSeconds(0.5f));

            List <int> openAreaID = new List <int>();

            makeOpenAreaIdArray(openAreaID);
            tileRouteManager.UpdateTileRouteState(openAreaID);
            sailKeyController.setEnableIndex(openAreaID.ToArray());
            Resources.UnloadAsset(Prefab_AreaOpenAnimation.GetComponent <UISprite>().atlas.spriteMaterial.mainTexture);
            yield return(new WaitForEndOfFrame());

            yield return(null);
        }
 private void compStartAnimation()
 {
     this._uiPar.Stop();
     this._uiPar.set_time(0f);
     this._uiPar.get_gameObject().SetActive(false);
     this._uiRareBG.alpha = 1f;
     this._uiItem.alpha   = 1f;
     this._uiParticleComp.SetActive(true);
     this._uiParticleComp.Play();
     this._uiParticleStar1.SetActive(true);
     this._uiParticleStar1.Play();
     this._anime.Stop();
     this._anime.Play("comp_GetSlotItem");
     TrophyUtil.Unlock_AlbumSlotNum();
 }
 private void compStartAnimation()
 {
     _uiPar.Stop();
     _uiPar.time = 0f;
     ((Component)_uiPar).gameObject.SetActive(false);
     _uiRareBG.alpha = 1f;
     _uiItem.alpha   = 1f;
     ((Component)_uiParticleComp).SetActive(isActive: true);
     _uiParticleComp.Play();
     ((Component)_uiParticleStar1).SetActive(isActive: true);
     _uiParticleStar1.Play();
     _anime.Stop();
     _anime.Play("comp_GetSlotItem");
     TrophyUtil.Unlock_AlbumSlotNum();
 }
 public void Play(Action callback)
 {
     TrophyUtil.Unlock_At_SCutBattle();
     this._taAlpha.PlayForward();
     this._taAlpha.SetOnFinished(delegate
     {
         if (callback != null)
         {
             callback.Invoke();
         }
         Observable.NextFrame(FrameCountType.Update).Subscribe(delegate(Unit _)
         {
             Object.Destroy(this.get_gameObject());
         });
     });
 }
 private IEnumerator OnGetRewards(ItemlistModel usedModel, IReward[] rewards, Action onAllReceived)
 {
     foreach (IReward reward in rewards)
     {
         if (reward is IReward_Useitem)
         {
             yield return(StartCoroutine(OnGetUseItemReward(usedModel, (IReward_Useitem)reward)));
         }
         else if (reward is IReward_Materials)
         {
             TrophyUtil.Unlock_Material();
             yield return(StartCoroutine(OnGetMaterialsReward(usedModel, (IReward_Materials)reward)));
         }
     }
     onAllReceived?.Invoke();
 }
Example #20
0
 private void _onShipGetFinished()
 {
     if (_prodReceiveShip != null)
     {
         _prodReceiveShip.ReleaseShipTextureAndBackgroundTexture();
         Object.Destroy(_prodReceiveShip.gameObject);
     }
     _prodReceiveShip = null;
     TrophyUtil.Unlock_At_BuildShip(_rewardShip.Ship.MstId);
     _rewardShip = null;
     TaskMainArsenalManager.IsControl     = true;
     TaskMainArsenalManager.isTouchEnable = true;
     ArsenalTaskManager._clsArsenal.hideDialog();
     _dockMiniMamager.StopConstAnimation();
     SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
     ArsenalTaskManager._clsArsenal.setTutorialVisible(isVisible: true);
 }
Example #21
0
 private IEnumerator StartProductionCoroutine(DeckPracticeResultModel deckPracticeResultModel, Action onFinished)
 {
     TrophyUtil.Unlock_UserLevel();
     ShipModel[] ships = deckPracticeResultModel.Ships;
     foreach (ShipModel ship in ships)
     {
         ShipExpModel shipExpInfo = deckPracticeResultModel.GetShipExpInfo(ship.MemId);
         PowUpInfo    powUpInfo   = deckPracticeResultModel.GetShipPowupInfo(ship.MemId);
         IEnumerator  startProductionShipResult = StartProductionShipResult(ship, shipExpInfo, powUpInfo);
         yield return(StartCoroutine(startProductionShipResult));
     }
     if (onFinished != null)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
         onFinished();
     }
 }
Example #22
0
 public void Pressed_Button_Yes3(GameObject obj)
 {
     rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     _clickmask.unclickable_onesec();
     _isBtnMaruUp = false;
     Set_Button_Sprite(value: false);
     dockSelectController.Index = 0;
     dialog3_appear(bstat: false);
     b3 = GameObject.Find("board3").GetComponent <board3>();
     b3.board3_appear(bstat: false, isSirent: true);
     b2 = GameObject.Find("board2").GetComponent <board2>();
     b2.board2_appear(boardStart: false, isSirent: true);
     rep.all_rid_mask();
     bd1.OpenDock(selected_dock);
     rep.set_mode(1);
     TrophyUtil.Unlock_At_DockOpen();
 }
Example #23
0
        private void OnSelectPositive()
        {
            mKeyController.ClearKeyAll();
            mKeyController.firstUpdate = true;
            FurnitureModel selectedFurniture = mContext.SelectedFurniture;

            if (mFurnitureStoreManager.IsValidExchange(selectedFurniture) && mFurnitureStoreManager.Exchange(selectedFurniture))
            {
                TrophyUtil.Unlock_At_BuyFurniture();
                SoundUtils.PlaySE(SEFIleInfos.SE_004);
                storeFrame.updateUserInfo(mFurnitureStoreManager);
                storeDialog.Hide();
                storeDialog.SetKeyController(null);
                mUIFurnitureStoreTabList.Refresh();
                mStateManager.PopState();
                mStateManager.ResumeState();
            }
        }
Example #24
0
 public void Pressed_Button_Yes3(GameObject obj)
 {
     this.rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     this._clickmask.unclickable_onesec();
     this._isBtnMaruUp = false;
     this.Set_Button_Sprite(false);
     this.dockSelectController.Index = 0;
     this.dialog3_appear(false);
     this.b3 = GameObject.Find("board3").GetComponent <board3>();
     this.b3.board3_appear(false, true);
     this.b2 = GameObject.Find("board2").GetComponent <board2>();
     this.b2.board2_appear(false, true);
     this.rep.all_rid_mask();
     this.bd1.OpenDock(this.selected_dock);
     this.rep.set_mode(1);
     TrophyUtil.Unlock_At_DockOpen();
 }
Example #25
0
        private IEnumerator PlayShowAnim()
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.SetNavigationInWithdrawalDecision();
            bool isWait = true;

            TrophyUtil.Unlock_At_SCutBattle();
            BattleCutManager.GetStateBattle().prodBCBattle.SetResultHPModeToWithdrawal(-74.86f);
            navigation.Show(0.35f, null);
            Show(delegate
            {
                isWait = false;
            });
            while (isWait)
            {
                yield return(null);
            }
        }
        public IEnumerator StartBattleJudge()
        {
            AudioSource source   = SingletonMonoBehaviour <SoundManager> .Instance.seSourceObserver[5].source;
            AudioClip   clip     = SoundFile.LoadSE(GetFanfare());
            float       waitTime = clip.length / 3f;

            if (!_isBattleCut)
            {
                _uiBackground.Show(0.5f, null);
            }
            yield return(new WaitForSeconds(0.5f));

            ShowHPGauge(_listHPGauges[0]);
            ShowHPGauge(_listHPGauges[1]);
            yield return(new WaitForSeconds(0.5f));

            _listHPGauges.ForEach(delegate(BtlCut_UICircleHPGauge x)
            {
                x.PlayNonColor().setDelay(0.5f);
            });
            if (_iWinRank == BattleWinRankKinds.S)
            {
                TrophyUtil.Unlock_At_BattleResultOnlySally();
                ShowCongratulation();
            }
            _uiJudgeLabel.SetActive(isActive: true);
            KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage);
            yield return(new WaitForSeconds(0.3f));

            _traRankBase.SetActive(isActive: true);
            KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage);
            yield return(new WaitForSeconds(0.8f));

            _uiRankTex.SetActive(isActive: true);
            KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage);
            source.PlayOneShot(clip);
            yield return(new WaitForSeconds(waitTime));

            Hide();
            yield return(new WaitForSeconds(0.5f));
        }
Example #27
0
        private IEnumerator OnReciveRewardDeck(Reward_Deck reward)
        {
            TrophyUtil.Unlock_DeckNum();
            bool recived = false;
            UIGetRewardDialog rewardMateralsDialog = Util.Instantiate(mPrefabUIDutyRewardMaterialsDialog.gameObject, mModalCamera.gameObject).GetComponent <UIGetRewardDialog>();

            rewardMateralsDialog.Initialize(reward);
            rewardMateralsDialog.SetOnDialogClosedCallBack(delegate
            {
                recived = true;
                rewardMateralsDialog.Close();
                UnityEngine.Object.Destroy(rewardMateralsDialog.gameObject);
            });
            KeyControl rewardDialogKeyController = rewardMateralsDialog.Show();

            ChangeKeyController(rewardDialogKeyController);
            while (!recived)
            {
                yield return(new WaitForSeconds(0.5f));
            }
        }
 private void compStartAnimation()
 {
     if (!_isNeedBGM)
     {
         ((Component)_uiParComp).SetActive(isActive: true);
         _uiParComp.Play();
     }
     _uiParticle.Stop();
     ((Component)_uiParticle).SetActive(isActive: false);
     _uiShip.alpha     = 1f;
     _uiBg.mainTexture = TextureFile.LoadRareBG(_clsRewardShip.Ship.Rare);
     ((Component)_getIconAnim).gameObject.SetActive(true);
     _getIconAnim.Stop();
     _getIconAnim.Play();
     _isPlayPhase1 = false;
     _isInput      = false;
     _anim.Stop();
     _anim.Play("comp_GetShip");
     TrophyUtil.Unlock_At_BuildShip(_clsRewardShip.Ship.MstId);
     TrophyUtil.Unlock_GetShip(_clsRewardShip.Ship.MstId);
 }
 private bool initEXPReflection(object data)
 {
     TrophyUtil.Unlock_UserLevel();
     _uiMVPShip.Show(BattleUtils.IsPlayMVPVoice(_clsResultModel.WinRank), null);
     _uiBonus.Show(null);
     Observable.Timer(TimeSpan.FromSeconds(0.25)).Subscribe(delegate
     {
         _listVeteransReportFleets[0].PlayEXPUpdate(delegate
         {
             UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;
             battleNavigation.SetNavigationInResult();
             battleNavigation.Show(0.2f, null);
             _uiGearBtn.Show(delegate
             {
                 _isInputEnabled = true;
             });
         });
         _uiGearBtn.SetDecideAction(OnDecideEXPUodateGearBtn);
     });
     return(false);
 }
 private void compStartAnimation()
 {
     if (!this._isNeedBGM)
     {
         this._uiParComp.SetActive(true);
         this._uiParComp.Play();
     }
     this._uiParticle.Stop();
     this._uiParticle.SetActive(false);
     this._uiShip.alpha     = 1f;
     this._uiBg.mainTexture = TextureFile.LoadRareBG(this._clsRewardShip.Ship.Rare);
     this._getIconAnim.get_gameObject().SetActive(true);
     this._getIconAnim.Stop();
     this._getIconAnim.Play();
     this._isPlayPhase1 = false;
     this._isInput      = false;
     this._anim.Stop();
     this._anim.Play("comp_GetShip");
     TrophyUtil.Unlock_At_BuildShip(this._clsRewardShip.Ship.MstId);
     TrophyUtil.Unlock_GetShip(this._clsRewardShip.Ship.MstId);
 }