31 lines
636 B
C#
31 lines
636 B
C#
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;
|
|
}
|
|
}
|
|
} |