KitchenChaos/Assets/Scripts/PlateIconSingleUI.cs

11 lines
284 B
C#

using ScriptableObjects;
using UnityEngine;
using UnityEngine.UI;
public class PlateIconSingleUI : MonoBehaviour {
[SerializeField] private Image image;
public void SetKitchenObjectSO(KitchenObjectSO kitchenObjectOS) {
image.sprite = kitchenObjectOS.sprite;
}
}