mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
New FSM
This commit is contained in:
parent
b0d5edc84e
commit
5a09b7fcd1
18 changed files with 229 additions and 3 deletions
33
Scripts/Components/FSM/Player/NewInit.cs
Normal file
33
Scripts/Components/FSM/Player/NewInit.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Components.FSM.Player;
|
||||
|
||||
public partial class NewInit : BaseState<PlayerState, CharacterBody2D>
|
||||
{
|
||||
public PlayerState StateId => PlayerState.Init;
|
||||
|
||||
public override void Init(IStateMachine<PlayerState, CharacterBody2D> machine)
|
||||
{
|
||||
base.Init(machine);
|
||||
}
|
||||
|
||||
public override void EnterState()
|
||||
{
|
||||
GD.Print($"{Name} Entered");
|
||||
}
|
||||
|
||||
public override void ExitState()
|
||||
{
|
||||
GD.Print($"{Name} Exited");
|
||||
}
|
||||
|
||||
public override void ProcessState(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void PhysicsProcessState(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
1
Scripts/Components/FSM/Player/NewInit.cs.uid
Normal file
1
Scripts/Components/FSM/Player/NewInit.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://btwuahxvreivs
|
||||
Loading…
Add table
Add a link
Reference in a new issue