public void CreateAndUseItem(string id, int num = 1) { ItemInfo itemInfo = new ItemInfo(); itemInfo.Init(id, 1); itemInfo.Use(num); }
public void CreateAndUseItem(ItemInfoRecord itemRecord, int num = 1) { ItemInfo itemInfo = new ItemInfo(); itemInfo.Init(itemRecord.Id, 1); itemInfo.Use(num); }