2026-04-17 장보기 목록 버튼 할당 진행중
This commit is contained in:
24
Assets/02_Scripts/UI/ShoppingOrderRow.cs
Normal file
24
Assets/02_Scripts/UI/ShoppingOrderRow.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
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.ToString();
|
||||
if (_quantityText != null) _quantityText.text = $"x{entry.RequiredQuantity}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user