CapersProject/Assets/02.Scripts/Ui/Tycoon/ManualIngredientSlot.cs

31 lines
636 B
C#
Raw Normal View History

2024-10-29 06:46:50 +00:00
using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace BlueWater.Uis
{
public class ManualIngredientSlot : MonoBehaviour
{
[field: SerializeField]
private Image image;
[field: SerializeField]
private TextMeshProUGUI type;
[field: SerializeField]
private TextMeshProUGUI persent;
public void SetImage(Sprite spr)
{
image.sprite = spr;
}
public void SetType(string str)
{
type.text = str;
}
public void SetPersent(string str)
{
persent.text = str;
}
}
}