This commit is contained in:
MuHua-123
2025-09-18 16:56:00 +08:00
parent 5d8f76b3e6
commit 7324361948
385 changed files with 22988 additions and 198 deletions
@@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 物品 - 常量
/// </summary>
[CreateAssetMenu(menuName = "MuHua/物品系统/物品")]
public class ConstItem : ScriptableObject {
/// <summary> 图片 </summary>
public Sprite sprite;
/// <summary> 数据转换 </summary>
public virtual DataItem To() {
DataItem item = new DataItem();
item.name = name;
item.sprite = sprite;
return item;
}
}