Files
MuHua-UIElements/Assets/ModuleCore/ModuleFormula/ConstMaterial.cs
T
MuHua-123 a18bea561a 1
2025-09-29 17:58:53 +08:00

21 lines
485 B
C#

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