SupaLidlGame/State/Thinker/VendorIdle.cs

18 lines
368 B
C#
Raw Normal View History

2024-06-01 15:43:46 -07:00
using Godot;
using GodotUtilities;
namespace SupaLidlGame.State.Thinker;
public partial class VendorIdle : ThinkerState
{
public override ThinkerState Think()
{
var bestNeutral = NPC.FindBestNeutral();
if (bestNeutral is not null)
{
NPC.Target = bestNeutral.Position - NPC.Position;
}
return null;
}
}