mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 13:45:55 +00:00
Moving FSM Elevator
This commit is contained in:
parent
eef9bc71c1
commit
8b378abef3
22 changed files with 349 additions and 16 deletions
20
Scripts/Components/FSM/Elevator/Init.cs
Normal file
20
Scripts/Components/FSM/Elevator/Init.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using Cirno.Scripts.Enums;
|
||||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Components.FSM.Elevator;
|
||||
|
||||
public partial class Init : BaseState<ElevatorState, ElevatorProxy>
|
||||
{
|
||||
public override ElevatorState StateId => ElevatorState.Init;
|
||||
public override void EnterState()
|
||||
{
|
||||
MainObject.StateMachine = StateMachine;
|
||||
|
||||
StateMachine.SetState(MainObject.StartingState);
|
||||
}
|
||||
|
||||
public override void ExitState()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue