using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 材料 - 物品常量 /// [CreateAssetMenu(menuName = "MuHua/物品系统/材料")] public class ConstMaterial : ConstInventoryItem { /// 最大堆叠数 public int maxStack = 99; public override InventoryItem To() { DataMaterial item = new DataMaterial(); item.name = name; item.sprite = sprite; item.maxStack = maxStack; return item; } }