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 items = new List(); 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() { } }