TestCase.cs 591 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. public class TestCase : MonoBehaviour
  4. {
  5. // Start is called once before the first execution of Update after the MonoBehaviour is created
  6. void Start()
  7. {
  8. List<ItemStock> items = new List<ItemStock>();
  9. items.Add(new ItemStock("food_00001", 14));
  10. UserProperty.itemStocks.Add("food", items);
  11. items.Clear();
  12. items.Add(new ItemStock("other_00001", 1));
  13. UserProperty.itemStocks.Add("other", items);
  14. }
  15. // Update is called once per frame
  16. void Update()
  17. {
  18. }
  19. }