feat: Add SkillModule and WeaponModule for managing skills and weapons

- Implemented SkillModule to manage FormSkillSO assets with a detailed UI for editing and displaying skill properties.
- Implemented WeaponModule to manage WeaponSO assets with a detailed UI for editing and displaying weapon properties.
- Created AssetOperations class for centralized CRUD operations on ScriptableObject assets, including create, rename, delete, and clone functionalities.
- Added DetailHeader for displaying and renaming asset names in the UI.
- Introduced SoListPane for a reusable ScriptableObject list panel with search functionality and context menus.
- Added meta files for all new scripts to ensure proper asset management in Unity.
This commit is contained in:
2026-05-21 07:09:53 +08:00
parent f096105caf
commit bb3afd130f
41 changed files with 2417 additions and 1618 deletions

View File

@@ -1,103 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d2443d04d1c179d4d8a4f36e7ca7156e, type: 3}
m_Name: Weapon_DiHun
m_EditorClassIdentifier:
weaponId:
displayName:
icon: {fileID: 0}
weaponType: 0
groundComboSteps:
- clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
damageSource: {fileID: 0}
hitBoxEnter: 0.3
hitBoxExit: 0.6
comboInputOpen: 0.3
comboInputClose: 0
cancelWindowOpen: 0.5
recoveryTime: 0.05
comboTimeout: 0.25
hitBoxId:
airComboSteps:
- clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
damageSource: {fileID: 0}
hitBoxEnter: 0.1
hitBoxExit: 0.8
comboInputOpen: 0
comboInputClose: 0
cancelWindowOpen: 0
recoveryTime: 0.05
comboTimeout: 0
hitBoxId:
upStep:
clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
damageSource: {fileID: 0}
hitBoxEnter: 0.2
hitBoxExit: 0.7
comboInputOpen: 0
comboInputClose: 0
cancelWindowOpen: 0
recoveryTime: 0.05
comboTimeout: 0
hitBoxId:
downStep:
clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
damageSource: {fileID: 0}
hitBoxEnter: 0.1
hitBoxExit: 0.9
comboInputOpen: 0
comboInputClose: 0
cancelWindowOpen: 0
recoveryTime: 0.05
comboTimeout: 0
hitBoxId:
hitBoxPrefab: {fileID: 0}
vfxConfig:
onEquipPresetId:
weaponTrailPrefab: {fileID: 0}
trailColor: {r: 1, g: 1, b: 1, a: 1}
soulPowerGain: 10
references:
version: 2
RefIds: []

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: f80486c9cd3d1db459ce6df915b11546
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,87 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d2443d04d1c179d4d8a4f36e7ca7156e, type: 3}
m_Name: Weapon_MingHun
m_EditorClassIdentifier:
weaponId:
displayName:
icon: {fileID: 0}
weaponType: 0
attack1Clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
attack2Clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
attack3Clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
airAttackClip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
upAttackClip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
downAttackClip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
attack1Source: {fileID: 0}
attack2Source: {fileID: 0}
attack3Source: {fileID: 0}
airAttackSource: {fileID: 0}
upAttackSource: {fileID: 0}
downAttackSource: {fileID: 0}
hitBoxPrefab: {fileID: 0}
vfxConfig:
onEquipPresetId:
weaponTrailPrefab: {fileID: 0}
trailColor: {r: 1, g: 1, b: 1, a: 1}
soulPowerGain: 10
references:
version: 2
RefIds: []

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: d87ae01ed8a2b4f4cb27d159a52d1a14
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,87 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d2443d04d1c179d4d8a4f36e7ca7156e, type: 3}
m_Name: Weapon_TianHun
m_EditorClassIdentifier:
weaponId:
displayName:
icon: {fileID: 0}
weaponType: 0
attack1Clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
attack2Clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
attack3Clip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
airAttackClip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
upAttackClip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
downAttackClip:
_FadeDuration: 0.25
_Speed: 1
_Events:
_NormalizedTimes: []
_Callbacks: []
_Names: []
_Clip: {fileID: 0}
_NormalizedStartTime: NaN
attack1Source: {fileID: 0}
attack2Source: {fileID: 0}
attack3Source: {fileID: 0}
airAttackSource: {fileID: 0}
upAttackSource: {fileID: 0}
downAttackSource: {fileID: 0}
hitBoxPrefab: {fileID: 0}
vfxConfig:
onEquipPresetId:
weaponTrailPrefab: {fileID: 0}
trailColor: {r: 1, g: 1, b: 1, a: 1}
soulPowerGain: 10
references:
version: 2
RefIds: []

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 76de8c0ba36dcce4db8990c5b62e9ed8
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant: