mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:45:33 +00:00
40 lines
No EOL
917 B
C#
40 lines
No EOL
917 B
C#
using Cirno.Scripts.Components.Actors;
|
|
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM._3DPlayer;
|
|
|
|
public partial class ShadowModule : ModuleBase<PlayerState, CharacterBody3D>
|
|
{
|
|
[Export] public ShadowProvider ShadowProvider { get; private set; }
|
|
|
|
private IStateMachine<PlayerState, CharacterBody3D> _machine;
|
|
private CharacterBody3D MainObject => _machine.MainObject;
|
|
|
|
|
|
public override void EnterState(PlayerState state)
|
|
{
|
|
ShadowProvider.Enable();
|
|
}
|
|
|
|
public override void ExitState(PlayerState state)
|
|
{
|
|
ShadowProvider.Disable();
|
|
}
|
|
|
|
public override void Init(IStateMachine<PlayerState, CharacterBody3D> machine)
|
|
{
|
|
_machine = machine;
|
|
|
|
ShadowProvider.Init(MainObject);
|
|
}
|
|
|
|
public override void Process(double delta)
|
|
{
|
|
|
|
}
|
|
|
|
public override void PhysicsProcess(double delta)
|
|
{
|
|
|
|
}
|
|
} |