using Godot; using System; using DungeonRPG.Scripts.General; public partial class PlayerIdleState : PlayerState { public override void _PhysicsProcess(double delta) { if (characterNode.Direction != Vector2.Zero) { characterNode.StateMachine.SwitchState(); } } public override void _Input(InputEvent @event) { if (Input.IsActionJustPressed(GameConstants.INPUT_DASH)) { characterNode.StateMachine.SwitchState(); } } protected override void EnterState() { base.EnterState(); characterNode.AnimatedSprite.Play(GameConstants.ANIM_IDLE); } }