Traveller/scripts/stateMachine/StateProcessor/PatrolStateProcessor.cs
2024-07-01 07:55:58 +08:00

24 lines
571 B
C#

using ColdMint.scripts.character;
using ColdMint.scripts.debug;
using Godot;
namespace ColdMint.scripts.stateMachine.StateProcessor;
/// <summary>
/// <para>PatrolStateProcessor</para>
/// <para>巡逻状态处理器</para>
/// </summary>
public class PatrolStateProcessor : StateProcessorTemplate
{
protected override void OnExecute(StateContext context, Node owner)
{
if (owner is not AiCharacter aiCharacter)
{
return;
}
aiCharacter.MoveLeft();
}
public override State State => State.Patrol;
}