UI系统优化
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Animancer;
|
||||
using BaseGames.Combat;
|
||||
using BaseGames.Localization;
|
||||
|
||||
namespace BaseGames.Skills
|
||||
{
|
||||
@@ -35,7 +37,7 @@ namespace BaseGames.Skills
|
||||
/// 路径: Assets/Scripts/Skills/FormSkillSO.cs
|
||||
/// </summary>
|
||||
[CreateAssetMenu(menuName = "BaseGames/Skills/FormSkill")]
|
||||
public class FormSkillSO : ScriptableObject
|
||||
public class FormSkillSO : ScriptableObject, ILocalizableAsset
|
||||
{
|
||||
[Header("Identity")]
|
||||
public string skillId;
|
||||
@@ -81,5 +83,13 @@ namespace BaseGames.Skills
|
||||
/// 命名规范: Assets/Prefabs/Skills/SKL_{skillId}_HitBox.prefab
|
||||
/// </summary>
|
||||
public GameObject SkillHitBoxPrefab;
|
||||
|
||||
public IEnumerable<LocalizationKeyRef> GetLocalizationKeys()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(displayNameKey))
|
||||
yield return new LocalizationKeyRef(displayNameKey, "Skills", nameof(displayNameKey));
|
||||
if (!string.IsNullOrEmpty(descriptionKey))
|
||||
yield return new LocalizationKeyRef(descriptionKey, "Skills", nameof(descriptionKey));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user