Files
SoulliesOfficial 649b7a5ddc 更新
2026-05-23 08:27:50 -04:00

22 lines
768 B
C#
Raw Permalink 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 Opsive.BehaviorDesigner.Runtime.Tasks;
using Opsive.GraphDesigner.Runtime.Variables;
using Opsive.Shared.Utility;
using UnityEngine;
namespace Cielonos.MainGame.Characters.AI
{
[Description("尝试申请扇区。成功返回 Success所有扇区已满返回 Failure。")]
[Category("Cielonos")]
public class TryAcquireSector : AutomataConditionalBase
{
[Tooltip("敌人的交战距离(站位半径)。")]
[SerializeField] protected SharedVariable<float> m_EngageRadius = 3f;
public override TaskStatus OnUpdate()
{
bool acquired = CombatManager.CoordinatorSm.TryAcquireSector(self, m_EngageRadius.Value);
return acquired ? TaskStatus.Success : TaskStatus.Failure;
}
}
}