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 ConstItemMaterial : ConstItem {
/// <summary> 最大堆叠数 </summary>
public int maxStack = 99;
public override DataItem To() {
DataItemMaterial item = new DataItemMaterial();
item.name = name;
item.sprite = sprite;
item.maxStack = maxStack;
return item;
}
}