多轮审查和修复
This commit is contained in:
24
Assets/Scripts/Player/FormSO.cs
Normal file
24
Assets/Scripts/Player/FormSO.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BaseGames.Player
|
||||
{
|
||||
/// <summary>
|
||||
/// 单一形态数据 ScriptableObject(架构 05_PlayerModule §18)。
|
||||
/// 存储于 FormConfigSO.forms[] 数组中,不单独作为 FormConfigSO 资产。
|
||||
/// ⚠️ 补充 formType 字段(架构 05 §18 遗漏,以架构 18 §10 ApplyPalette(FormType) 为准)。
|
||||
/// </summary>
|
||||
[CreateAssetMenu(menuName = "Player/Form")]
|
||||
public class FormSO : ScriptableObject
|
||||
{
|
||||
[Header("基础信息")]
|
||||
public string formId; // 全局唯一 ID,如 "Form_Sky"
|
||||
public string displayName; // 显示名,如 "天魂"
|
||||
public FormType formType; // 对应枚举值,供 ApplyPalette / 条件判断使用
|
||||
|
||||
[Header("武器")]
|
||||
public WeaponSO defaultWeapon; // 此形态的默认武器(护符可通过 Override 覆盖)
|
||||
|
||||
[Header("外观")]
|
||||
public Color formAccentColor = Color.white; // 调色盘主色(仅供参考,VFX 以 formType 枚举为准)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user