SupaLidlGame/Characters/States/NPCMoveState.cs

21 lines
450 B
C#
Raw Normal View History

2022-11-13 15:42:04 -08:00
using Godot;
namespace SupaLidlGame.Characters.State
{
public partial class NPCMoveState : NPCState
{
[Export]
public CharacterState IdleState { get; set; }
public override CharacterState Process(double delta)
{
base.Process(delta);
if (Character.Direction.LengthSquared() == 0)
{
return IdleState;
}
return null;
}
}
}