yyl
11 小时以前 aebae35feef4ff2a5815aad1e140402cf25231c1
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;