Files
zeling_v2/Assets/Scripts/Feedback/FeedbackConfigSO.cs
2026-05-08 11:04:00 +08:00

21 lines
637 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine;
namespace BaseGames.Feedback
{
/// <summary>
/// Feedback 系统全局配置:闪白颜色/时长等通用参数。
/// 资产路径Assets/ScriptableObjects/Feedback/FeedbackConfig.asset
/// </summary>
[CreateAssetMenu(menuName = "Feedback/FeedbackConfig")]
public class FeedbackConfigSO : ScriptableObject
{
[Header("受伤闪白")]
[Tooltip("Shader _FlashColor 参数目标颜色。")]
public Color HurtFlashColor = Color.white;
[Tooltip("闪白持续时间(秒)。")]
[Min(0.01f)]
public float HurtFlashDuration = 0.12f;
}
}