private bool CheckActionPriceResult()
        {
            _price = _actionPriceResult.Read(true);
            if (_price == null)
            {
                return(false);
            }

            if (_price.action_code == ActionCode.ResetWinRate)
            {
                ConfirmBtn.interactable = true;
                var p     = _price.price;
                var ct    = p != null ? p.type : CurrencyType.YIN_PIAO;
                var count = p != null ? p.count : 0;

                CostTip.text = string.Format(
                    "只需{0}{1},即可将胜率恢复成50%",
                    count,
                    CurrencyType.LabelOf(ct));
            }
            else
            {
                var serviceQQ = _serviceQQ.Read();
                ConfirmBtn.interactable = false;
                CostTip.text            = string.Format(
                    "数据错误,无法恢复胜率\n请联系客服:{0}",
                    serviceQQ);
            }

            return(true);
        }
        private bool CheckActionPriceResult()
        {
            _price = _actionPriceResult.Read(true);
            if (_price == null)
            {
                return(false);
            }

            // 检查是否收到了ActionPriceResult。
            var price = _price.price;

            if (price != null)
            {
                CostTip.text = string.Format(
                    "只需{0}{1},即可修改昵称",
                    price.count,
                    CurrencyType.LabelOf(price.type));

                ConfirmBtn.interactable = true;
            }

            _actionPriceResult.ClearNotInvalidate();

            return(true);
        }
        public override void BeforeShow()
        {
            CostTip.text            = "正在与服务器通信中...";
            ConfirmBtn.interactable = false;

            _price = null;

            _actionPriceResult.ClearNotInvalidate();
            GetRemoteAPI().RequestActionPrice(ActionCode.ResetWinRate);
            GetTaskManager().ExecuteTask(CheckActionPriceResult, null);
        }