private void OnActive(WithdrawalDecisionType iType)
 {
     if (_iSelectType != iType)
     {
         _iSelectType = iType;
         ChangeFocus(_iSelectType);
     }
 }
 private void ChangeFocus(WithdrawalDecisionType iType)
 {
     KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
     _listHexExBtns.ForEach(delegate(UIWithdrawalButton x)
     {
         x.isFocus = ((x.index == (int)iType) ? true : false);
     });
 }
        private void PreparaNext(bool isFoward)
        {
            WithdrawalDecisionType iSelectType = _iSelectType;

            _iSelectType = (WithdrawalDecisionType)Mathe.NextElement((int)_iSelectType, 0, _listHexExBtns.Count - 1, isFoward);
            if (iSelectType != _iSelectType)
            {
                ChangeFocus(_iSelectType);
            }
        }
        protected override void SetForeground()
        {
            WithdrawalDecisionType index = (WithdrawalDecisionType)this.index;

            if (index != WithdrawalDecisionType.Withdrawal)
            {
                if (index == WithdrawalDecisionType.Chase)
                {
                    this._uiLabelSprite.spriteName = ((!this.toggle.value) ? "txt_yasen_off" : "txt_yasen_on");
                }
            }
            else
            {
                this._uiLabelSprite.spriteName = ((!this.toggle.value) ? "txt_return_off" : "txt_return_on");
            }
        }
        protected override void OnInit()
        {
            WithdrawalDecisionType index = (WithdrawalDecisionType)this.index;

            if (index != WithdrawalDecisionType.Withdrawal)
            {
                if (index == WithdrawalDecisionType.Chase)
                {
                    this._uiLabelSprite.spriteName = "txt_yasen_off";
                }
            }
            else
            {
                this._uiLabelSprite.spriteName = "txt_return_off";
            }
        }
 private void OnDeside(WithdrawalDecisionType iType)
 {
     if (!_isDecide)
     {
         _isDecide        = true;
         _isInputPossible = false;
         _listHexExBtns.ForEach(delegate(UIWithdrawalButton x)
         {
             x.toggle.enabled = false;
         });
         KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_036);
         UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;
         battleNavigation.Hide(0.3f, null);
         Observable.Timer(TimeSpan.FromSeconds(0.30000001192092896)).Subscribe(delegate
         {
             if (_delDecideWithdrawalButton != null)
             {
                 _delDecideWithdrawalButton(_listHexExBtns[(int)iType]);
             }
         });
     }
 }