mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:35:34 +00:00
30 lines
No EOL
640 B
C#
30 lines
No EOL
640 B
C#
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM._3DPlayer;
|
|
|
|
public partial class Init : BaseState<PlayerState, CharacterBody3D>
|
|
{
|
|
public override PlayerState StateId => PlayerState.Init;
|
|
|
|
public override void EnterState()
|
|
{
|
|
// Use Godot timer instead of Task.Delay to stay on main thread
|
|
var timer = GetTree().CreateTimer(0.5f);
|
|
timer.Timeout += () => StateMachine.SetState(PlayerState.Active);
|
|
}
|
|
|
|
public override void ExitState()
|
|
{
|
|
|
|
}
|
|
|
|
public override void PhysicsProcessState(double delta)
|
|
{
|
|
|
|
}
|
|
|
|
public override void ProcessState(double delta)
|
|
{
|
|
|
|
}
|
|
} |