mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 02:55:54 +00:00
Moving FSM Elevator
This commit is contained in:
parent
eef9bc71c1
commit
8b378abef3
22 changed files with 349 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue