using UnityEngine;
|
using UnityEngine.UI;
|
|
|
namespace Snxxz.UI
|
{
|
public class StoveRecipeCell : MonoBehaviour
|
{
|
[SerializeField] Image icon;
|
[SerializeField] Text recipeNameText;
|
[SerializeField] Image bgIcon;
|
public void SetDisplayModel(int alchemyId)
|
{
|
AlchemyConfig alchemy = AlchemyConfig.Get(alchemyId);
|
if (alchemy == null) return;
|
|
icon.SetSprite(alchemy.ICONID);
|
bgIcon.SetItemBackGround(alchemy.AlchemyQuality);
|
recipeNameText.text = alchemy.AlchemName;
|
}
|
}
|
}
|