2026-04-20 카트 잡기
This commit is contained in:
@@ -8,6 +8,10 @@ public class ShoppingOrderView : MonoBehaviour
|
||||
[SerializeField] private ShoppingOrderList _orderList;
|
||||
[SerializeField] private ShoppingOrderRow _rowPrefab;
|
||||
[SerializeField] private Transform _rowContainer;
|
||||
[SerializeField] private Animator _anim;
|
||||
[SerializeField] private GameObject _paper;
|
||||
|
||||
private bool _visibleShoppingOrderList = false;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
@@ -29,5 +33,27 @@ public void Rebuild()
|
||||
row.Bind(entry);
|
||||
}
|
||||
}
|
||||
|
||||
public async Awaitable ToggleShoppingOrderList()
|
||||
{
|
||||
_visibleShoppingOrderList = !_visibleShoppingOrderList;
|
||||
await OnOffShoppingOrderList(_visibleShoppingOrderList);
|
||||
}
|
||||
|
||||
private async Awaitable OnOffShoppingOrderList(bool isOn)
|
||||
{
|
||||
if(isOn)
|
||||
{
|
||||
_paper.SetActive(true);
|
||||
_anim.SetTrigger("OnVisibleShoppingOrderListTrigger");
|
||||
}
|
||||
else
|
||||
{
|
||||
_anim.SetTrigger("OffVisibleShoppingOrderListTrigger");
|
||||
await Util.RunDelayed(1f,()=>{
|
||||
_paper.SetActive(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user