using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 物品 - 常量 /// [CreateAssetMenu(menuName = "MuHua/物品系统/物品")] public class InventoryItemConst : ScriptableObject { /// 图片 public Sprite sprite; /// 数据转换 public virtual InventoryItem To() { InventoryItem item = new InventoryItem(); item.name = name; item.sprite = sprite; return item; } }