using asap.core; using GameCore; using TMPro; using UniRx; using UnityEngine; using UnityEngine.UI; namespace EventMowForTreasure { public class EventMowForTreasureExchangePanel : BasePanel { #region UI private TMP_Text _textOwn; private Button _btnAdd; private Button _btnReduce; private Button _btnExchange; private Button _btnExchangeGray; private TMP_Text _textNum; private TMP_Text _textCost; private TMP_Text _textCostGray; private Image _imgDefaultTool; private Image _imgExchangeTool; private GameObject _btnAddGray; private GameObject _objCommonGray; #endregion #region data private int _exchangeNum = 1; private int _exchangeRate; private int _toolConfigID; private EventMowForTreasureManager _manager; private EventMowForTreasureManager Manager => _manager ??= GContext.container.Resolve(); #endregion private void Awake() { _textOwn = gameObject.FindChildGameObject("text_own").GetComponent(); _textNum = gameObject.FindChildGameObject("text_num").GetComponent(); _textCost = gameObject.FindChildGameObject("p_text").GetComponent(); _textCostGray=gameObject.FindChildGameObject("p_text_cost_gary").GetComponent(); _btnAdd = gameObject.FindChildGameObject("btn_add").GetComponent