public void SetItemSettings() { ItemButton = GetComponent <Button>(); if (ConsumableItemData == null) { return; } ItemButton.image.sprite = ConsumableItemData.Icon; ItemButton.onClick.AddListener(() => { ConsumableItemData.Consume(); Manager.Bag.itemsList.Remove(ConsumableItemData); Manager.RefreshBag(); }); }