Moving FSM Elevator

This commit is contained in:
Marco 2025-03-06 10:27:06 +01:00
commit 8b378abef3
22 changed files with 349 additions and 16 deletions

View file

@ -28,7 +28,6 @@ public abstract partial class StateMachineBase<TKey, TType> : Node2D, IStateMach
state.Init(this);
}
}
GD.Print("FSM Ready");
SetState(InitialState);
}
@ -41,9 +40,7 @@ public abstract partial class StateMachineBase<TKey, TType> : Node2D, IStateMach
CurrentStateIndex = stateId;
CurrentState.EnterState();
}
public override void _Process(double delta)
{
if (CurrentStateIndex is null) return;