搭建框架

This commit is contained in:
MuHua-123
2025-09-17 17:44:00 +08:00
parent c17af4d74b
commit 5d8f76b3e6
11 changed files with 182 additions and 0 deletions
@@ -0,0 +1,18 @@
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 DataItem To() {
DataItem item = new DataItem { name = name, sprite = sprite };
return item;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 66da6092ac51f6a47a0c3d896f845816
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: