Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
        private bool InitUnitSelect(object data)
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.SetNavigationInCommand(CtrlBCCommandSelect.CtrlMode.Command);
            this._isInputPossible = true;
            return(false);
        }
Ejemplo n.º 3
0
        private bool InitSurfaceSelect(object data)
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.SetNavigationInCommand(CtrlBCCommandSelect.CtrlMode.Surface);
            this._isInputPossible = true;
            this._uiCommandSurfaceList.isColliderEnabled = true;
            return(false);
        }
Ejemplo n.º 4
0
        private void SceneFinish()
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.Hide(0.2f, null);
            isAnimEnd = false;
            hideAll(delegate
            {
                Dlg.Call(ref _actCallback);
            });
        }
Ejemplo n.º 5
0
        public void Play(Action onFinished)
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.SetNavigationInCommand(this._iCtrlModel);
            navigation.Show(Defines.PHASE_FADE_TIME, null);
            this._actOnFinished = onFinished;
            BattleCutManager.SetTitleText(BattleCutPhase.Command);
            this.Show(delegate
            {
                this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitSurfaceSelect), new StatementMachine.StatementMachineUpdate(this.UpdateSurfaceSelect));
            });
        }
Ejemplo n.º 6
0
        public void Play(Action onFinished)
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.SetNavigationInCommand(_iCtrlModel);
            navigation.Show(Defines.PHASE_FADE_TIME, null);
            _actOnFinished = onFinished;
            BattleCutManager.SetTitleText(BattleCutPhase.Command);
            Show(delegate
            {
                _clsState.AddState(InitSurfaceSelect, UpdateSurfaceSelect);
            });
        }
Ejemplo n.º 7
0
 private void DecideAdvancingWithDrawal()
 {
     UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();
     navigation.Hide(Defines.PHASE_FADE_TIME, null);
     _isInputPossible = false;
     _listLabelButton.ForEach(delegate(UILabelButton x)
     {
         x.toggle.enabled = false;
     });
     Hide().setOnComplete((Action)delegate
     {
         Dlg.Call(ref _actCallback, _iSelectType);
     });
 }
        private void DecideAdvancingWithDrawal()
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.Hide(Defines.PHASE_FADE_TIME, null);
            this._isInputPossible = false;
            this._listLabelButton.ForEach(delegate(UILabelButton x)
            {
                x.toggle.set_enabled(false);
            });
            this.Hide().setOnComplete(delegate
            {
                Dlg.Call <AdvancingWithdrawalType>(ref this._actCallback, this._iSelectType);
            });
        }
Ejemplo n.º 9
0
 public void Play(Action<AdvancingWithdrawalType> onDecideCallback)
 {
     _actCallback = onDecideCallback;
     BattleCutManager.GetStateBattle().prodBCBattle.setResultHPModeAdvancingWithdrawal(-74.86f);
     UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();
     navigation.SetNavigationInAdvancingWithdrawal();
     navigation.Show(Defines.PHASE_FADE_TIME, null);
     Show().setOnComplete((Action)delegate
     {
         _isInputPossible = true;
         _listLabelButton.ForEach(delegate(UILabelButton x)
         {
             x.toggle.enabled = (x.isValid ? true : false);
         });
     });
 }
Ejemplo n.º 10
0
        public void Decide()
        {
            this._isInputPossible = false;
            this._listLabelButton.ForEach(delegate(UILabelButton x)
            {
                x.toggle.set_enabled(false);
            });
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.Hide(Defines.PHASE_FADE_TIME, null);
            ShipRecoveryType type = BattleUtils.GetShipRecoveryType(this._iSelectType);

            this.Hide().setOnComplete(delegate
            {
                Dlg.Call <AdvancingWithdrawalDCType, ShipRecoveryType>(ref this._actOnDecide, this._iSelectType, type);
            });
        }
Ejemplo n.º 11
0
        public void Play(Action <AdvancingWithdrawalDCType, ShipRecoveryType> onDecide)
        {
            this._actOnDecide = onDecide;
            BattleCutManager.GetStateBattle().prodBCBattle.setResultHPModeAdvancingWithdrawal(-74.86f);
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.SetNavigationInAdvancingWithdrawal();
            navigation.Show(Defines.PHASE_FADE_TIME, null);
            this.Show().setOnComplete(delegate
            {
                this._isInputPossible = true;
                this._listLabelButton.ForEach(delegate(UILabelButton x)
                {
                    x.toggle.set_enabled(x.isValid);
                });
            });
        }
        public void Decide()
        {
            _isInputPossible = false;
            _listLabelButton.ForEach(delegate(UILabelButton x)
            {
                x.toggle.enabled = false;
            });
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.Hide(Defines.PHASE_FADE_TIME, null);
            ShipRecoveryType type = BattleUtils.GetShipRecoveryType(_iSelectType);

            Hide().setOnComplete((Action) delegate
            {
                Dlg.Call(ref _actOnDecide, _iSelectType, type);
            });
        }
Ejemplo n.º 13
0
        private bool OnStartBattle(List <BattleCommand> commands)
        {
            if (!this._clsCommandModel.SetCommand(commands))
            {
                return(false);
            }
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.Hide(Defines.PHASE_FADE_TIME, null);
            this._clsState.Clear();
            this._isInputPossible = false;
            this.Hide(delegate
            {
                Dlg.Call(ref this._actOnFinished);
            });
            return(true);
        }
Ejemplo n.º 14
0
        public void Play(Action <BattleFormationKinds1> callback)
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.SetNavigationInFormation();
            navigation.Show(Defines.PHASE_FADE_TIME, null);
            this._actCallback = callback;
            this.Show().setOnComplete(delegate
            {
                this._isInputPossible = true;
                this._listLabelButton.ForEach(delegate(UILabelButton x)
                {
                    x.toggle.set_enabled(x.isValid);
                });
                this.ChangeFocus(this._iSelectFormation);
            });
        }
Ejemplo n.º 15
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);
            }
        }
Ejemplo n.º 16
0
        private void DecideFormation(BattleFormationKinds1 iKind)
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.Hide(Defines.PHASE_FADE_TIME, null);
            this._isInputPossible = false;
            this._listLabelButton.ForEach(delegate(UILabelButton x)
            {
                x.toggle.set_enabled(false);
            });
            Observable.FromCoroutine(() => this.formationAnimation.StartAnimation(this._iSelectFormation), false).Subscribe(delegate(Unit _)
            {
                this.Hide().setOnComplete(delegate
                {
                    Dlg.Call <BattleFormationKinds1>(this._actCallback, iKind);
                });
                BattleCutManager.GetLive2D().Hide(null);
            });
        }
Ejemplo n.º 17
0
        private void OnDecide(int nIndex)
        {
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            _nIndex          = nIndex;
            _isInputPossible = false;
            _listLabelButton.ForEach(delegate(UILabelButton x)
            {
                x.toggle.enabled = false;
            });
            Hide(delegate
            {
                if (_actCallback != null)
                {
                    _actCallback(_nIndex);
                }
            });
            navigation.Hide(Defines.PHASE_FADE_TIME, null);
            BattleCutManager.GetStateBattle().prodBCBattle.Hide(Defines.PHASE_FADE_TIME);
        }