修复BUG
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 物品 - 常量
|
||||
/// </summary>
|
||||
[CreateAssetMenu(menuName = "MuHua/物品系统/物品")]
|
||||
public class InventoryItemConst : ScriptableObject {
|
||||
/// <summary> 图片 </summary>
|
||||
public Sprite sprite;
|
||||
|
||||
/// <summary> 数据转换 </summary>
|
||||
public virtual InventoryItem To() {
|
||||
InventoryItem item = new InventoryItem();
|
||||
item.name = name;
|
||||
item.sprite = sprite;
|
||||
return item;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user