using BrewMonster; using BrewMonster.Scripts.Managers; using System.Collections; using UnityEngine; using UnityEngine.UI; using static CSNetwork.Common.ExpTypes; public class ProduceItemPanel : MonoBehaviour { [Header("UI")] public Image icon; private uint recipeId; private Coroutine loadIconCoroutine; private DlgProduce ownerDlg; private Button cachedButton; public void Setup(uint recipeId, DlgProduce dlg) { this.recipeId = recipeId; this.ownerDlg = dlg; SetupClickHandler(); LoadOutputIcon(); } void SetupClickHandler() { if (cachedButton == null) { cachedButton = GetComponent