| | |
| | | |
| | | int arrIndex; |
| | | int itemLV; |
| | | int itemID; |
| | | public void Display(int _index) |
| | | { |
| | | arrIndex = _index; |
| | | int itemID = GoldRushManager.Instance.autoRefreshItemIDs[arrIndex]; |
| | | itemID = GoldRushManager.Instance.autoRefreshItemIDs[arrIndex]; |
| | | itemLV = GoldRushManager.Instance.GetAutoItemLV(arrIndex); |
| | | bool isOn = itemLV > 0; |
| | | itemLV = itemLV > 0 ? itemLV : 1; |
| | |
| | | void ChangeWorkerCount(int lv) |
| | | { |
| | | itemLV = lv; |
| | | var config = GoldRushItemConfig.GetConfig(itemID, itemLV); |
| | | itemCell.Init(new ItemCellModel(itemID, false, config.ItemCount)); |
| | | nameText.text = GoldRushManager.Instance.GetCampItemName(config); |
| | | if (!autoToggle.isOn) |
| | | { |
| | | return; |