2026-04-17 장보기 목록 버튼 할당 진행중
This commit is contained in:
8
Assets/02_Scripts/Data/Shopping.meta
Normal file
8
Assets/02_Scripts/Data/Shopping.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a796fd34ac5e02e4391fefa802c64cb9
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
15
Assets/02_Scripts/Data/Shopping/ShoppingOrderEntry.cs
Normal file
15
Assets/02_Scripts/Data/Shopping/ShoppingOrderEntry.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using VRShopping.Items;
|
||||
|
||||
namespace VRShopping.Shopping
|
||||
{
|
||||
[Serializable]
|
||||
public class ShoppingOrderEntry
|
||||
{
|
||||
[UnityEngine.SerializeField] private ProductGroup _productGroup;
|
||||
[UnityEngine.SerializeField, UnityEngine.Min(1)] private int _requiredQuantity = 1;
|
||||
|
||||
public ProductGroup ProductGroup => _productGroup;
|
||||
public int RequiredQuantity => _requiredQuantity;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a087096c894c024aa409c35c9b1b87d
|
||||
14
Assets/02_Scripts/Data/Shopping/ShoppingOrderList.cs
Normal file
14
Assets/02_Scripts/Data/Shopping/ShoppingOrderList.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRShopping.Shopping
|
||||
{
|
||||
[CreateAssetMenu(fileName = "ShoppingOrderList", menuName = "VR Shopping/Shopping Order List", order = 1)]
|
||||
public class ShoppingOrderList : ScriptableObject
|
||||
{
|
||||
[SerializeField] private List<ShoppingOrderEntry> _entries = new List<ShoppingOrderEntry>();
|
||||
|
||||
public IReadOnlyList<ShoppingOrderEntry> Entries => _entries;
|
||||
public int Count => _entries.Count;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 79a3b1f54c1b0164ab96b9fc0618d0d5
|
||||
Reference in New Issue
Block a user