FSM Selector with sound

This commit is contained in:
Marco 2025-03-01 18:02:11 +01:00
commit ee09c50dbd
20 changed files with 330 additions and 28 deletions

View file

@ -42,22 +42,22 @@ public partial class Selector : Node2D
}
}
public override void _Process(double delta)
{
if (Input.IsActionJustPressed("scan"))
{
SelectNext();
}
// if (SelectedInteractable is not null) {
// this.Visible = true;
// this.GlobalPosition = SelectedInteractable.GlobalPosition;
// }
// else
// {
// this.Visible = false;
// }
}
// public override void _Process(double delta)
// {
// if (Input.IsActionJustPressed("scan"))
// {
// SelectNext();
// }
//
// // if (SelectedInteractable is not null) {
// // this.Visible = true;
// // this.GlobalPosition = SelectedInteractable.GlobalPosition;
// // }
// // else
// // {
// // this.Visible = false;
// // }
// }
public void SelectNext()
{