SupaLidlGame/Characters/States/PlayerState.cs

16 lines
519 B
C#
Raw Normal View History

2022-11-13 15:42:04 -08:00
namespace SupaLidlGame.Characters.State
{
public partial class PlayerState : CharacterState
{
//public PlayerMachine PlayerMachine => Machine as PlayerMachine;
protected Player _player => Character as Player;
public override CharacterState Process(double delta)
{
Character.Direction = Godot.Input.GetVector("ui_left", "ui_right",
"ui_up", "ui_down");
return base.Process(delta);
}
}
}