private IEnumerator PlayForceCallback()
        {
            UIBattleNavigation uibn = BattleTaskManager.GetPrefabFile().battleNavigation;

            uibn.SetNavigationInWithdrawalDecision(_iMode);
            Dlg.Call(ref _actForceCallback);
            _uiTacticalSituation = UITacticalSituation.Instantiate(((Component)_prefabUITacticalSituation).GetComponent <UITacticalSituation>(), BattleTaskManager.GetBattleCameras().cutInCamera.transform, BattleTaskManager.GetBattleManager());
            _uiTacticalSituation.Init(OnTacticalSituationBack);
            _uiTacticalSituation.panel.depth = panel.depth + 1;
            yield return(StartCoroutine(BattleUtils.ClearMemory()));

            _listHexExBtns.ForEach(delegate(UIWithdrawalButton x)
            {
                var _003CPlayForceCallback_003Ec__IteratorF = this;
                x.SetActive(isActive: true);
                x.Play(delegate
                {
                    x.isFocus           = ((x.index == 0) ? true : false);
                    x.isColliderEnabled = true;
                    if (x.index == 0)
                    {
                        _isInputPossible = true;
                        _clsState.AddState(InitWithdrawalSelection, UpdateWithdrawalSelection);
                        uibn.Show();
                    }
                });
            });
            yield return(null);
        }
        private bool InitWithdrawalSelection(object data)
        {
            _iMode = Mode.Selection;
            UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;

            battleNavigation.SetNavigationInWithdrawalDecision(_iMode);
            return(false);
        }
 private bool InitTacticalSituation(object data)
 {
     _iMode = Mode.TacticalSituation;
     _uiTacticalSituation.Show(delegate
     {
         UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;
         battleNavigation.SetNavigationInWithdrawalDecision(_iMode);
     });
     return(false);
 }
Beispiel #4
0
        public override bool Init()
        {
            base.Init();
            this._iMode                     = ProdWithdrawalDecisionSelection.Mode.Selection;
            this._clsState                  = new StatementMachine();
            this._isDecide                  = false;
            this._isInputPossible           = false;
            this._delDecideWithdrawalButton = null;
            this.InitObjects();
            UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;

            battleNavigation.SetNavigationInWithdrawalDecision(this._iMode);
            return(true);
        }