Files
zeling_v2/Assets/Scripts/Support/AntiSoftlock/RoomEscapeInfoSO.cs
2026-05-13 09:19:54 +08:00

26 lines
938 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;
using BaseGames.Player;
namespace BaseGames.Support.AntiSoftlock
{
/// <summary>
/// 房间逃脱信息 SO架构 16_SupportingModules §5.2)。
/// 当 AntiSoftlockSystem 检测到玩家卡关时,提供重置目标场景和生成点。
/// </summary>
[CreateAssetMenu(menuName = "AntiSoftlock/RoomEscapeInfo", fileName = "ESC_")]
public class RoomEscapeInfoSO : ScriptableObject
{
[Tooltip("逃脱目标场景名称(留空 = 最近检查点)")]
public string targetScene;
[Tooltip("目标场景中的生成点 ID留空 = 默认生成点)")]
public string spawnId;
[Tooltip("需要玩家拥有此能力才触发此逃脱路径None = 无要求)")]
public AbilityType requiredAbility = AbilityType.None;
[Tooltip("此逃脱路径的优先级(越高越优先选择)")]
public int priority = 0;
}
}