12345678910111213141516171819202122 |
- using System.Collections.Generic;
- using UnityEngine;
- public class TestCase : MonoBehaviour
- {
- // Start is called once before the first execution of Update after the MonoBehaviour is created
- void Start()
- {
- List<ItemStock> items = new List<ItemStock>();
- items.Add(new ItemStock("food_00001", 14));
- UserProperty.itemStocks.Add("food", items);
- items.Clear();
- items.Add(new ItemStock("other_00001", 1));
- UserProperty.itemStocks.Add("other", items);
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
|