Example #1
0
        public void CreateAndUseItem(string id, int num = 1)
        {
            ItemInfo itemInfo = new ItemInfo();

            itemInfo.Init(id, 1);
            itemInfo.Use(num);
        }
Example #2
0
        public void CreateAndUseItem(ItemInfoRecord itemRecord, int num = 1)
        {
            ItemInfo itemInfo = new ItemInfo();

            itemInfo.Init(itemRecord.Id, 1);
            itemInfo.Use(num);
        }