lcy
71 分钟以前 11dbbeb220a366951cbcccb5b823b845b77e1b9d
Main/System/InternalAffairs/GoldRushAutoCell.cs
@@ -17,10 +17,11 @@
    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;
@@ -68,6 +69,9 @@
    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;