| | |
| | | callBackBtn.SetActive(false); |
| | | |
| | | iconImg.SetIconWithMoneyType(GoldRushManager.Instance.refreshMoneyType); |
| | | moneyText.text = UIHelper.ShowUseMoney(GoldRushManager.Instance.refreshMoneyType, GetRefreshMoney()); |
| | | moneyText.text = UIHelper.ShowUseMoney(GoldRushManager.Instance.refreshMoneyType, |
| | | GoldRushManager.Instance.GetRefreshMoney(GoldRushManager.Instance.selectCampID)); |
| | | workBtn.SetInteractable(emptyCnt != 0); |
| | | workerCount = Math.Min(emptyCnt, 1); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | int GetRefreshMoney() |
| | | { |
| | | var refreshCnt = GoldRushManager.Instance.GetCampRefreshCnt(GoldRushManager.Instance.selectCampID); |
| | | return GoldRushManager.Instance.refreshMoneyList[Math.Min(refreshCnt, GoldRushManager.Instance.refreshMoneyList.Length - 1)]; |
| | | } |
| | | |
| | | |
| | | void OnGoldRushCampEvent(int campID) |
| | | { |
| | |
| | | return; |
| | | |
| | | |
| | | if (!UIHelper.CheckMoneyCount(GoldRushManager.Instance.refreshMoneyType, GetRefreshMoney(), 2)) |
| | | if (!UIHelper.CheckMoneyCount(GoldRushManager.Instance.refreshMoneyType, |
| | | GoldRushManager.Instance.GetRefreshMoney(GoldRushManager.Instance.selectCampID), 2)) |
| | | { |
| | | return; |
| | | } |