26 lines
658 B
C#
26 lines
658 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using VRShopping.Items;
|
|
using VRShopping.Shopping;
|
|
|
|
namespace VRShopping.UI
|
|
{
|
|
public class ShoppingOrderRow : MonoBehaviour
|
|
{
|
|
[SerializeField] private TMP_Text _nameText;
|
|
[SerializeField] private TMP_Text _quantityText;
|
|
|
|
public void Bind(ShoppingOrderEntry entry)
|
|
{
|
|
if (entry == null)
|
|
{
|
|
gameObject.SetActive(false);
|
|
return;
|
|
}
|
|
|
|
if (_nameText != null) _nameText.text = entry.ProductGroup.ToKorean();
|
|
if (_quantityText != null) _quantityText.text = $"x{entry.RequiredQuantity}";
|
|
}
|
|
}
|
|
}
|