mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-04 08:55:55 +00:00
Player shader
This commit is contained in:
parent
357ced3e94
commit
6162d11165
19 changed files with 480 additions and 24 deletions
39
Scripts/Components/Actors/3D/PlayerAnimationModule3D.cs
Normal file
39
Scripts/Components/Actors/3D/PlayerAnimationModule3D.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
using Cirno.Scripts.Components.FSM;
|
||||
using Cirno.Scripts.Components.FSM._3DPlayer;
|
||||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Components.Actors._3D;
|
||||
|
||||
public partial class PlayerAnimationModule3D : ModuleBase<PlayerState, CharacterBody3D>
|
||||
{
|
||||
|
||||
[Export] public PlayerAnimationProvider3D AnimationProvider { get; private set; }
|
||||
|
||||
[Export] public IsoPlayerStorageModule Storage { get; private set; }
|
||||
|
||||
public override void EnterState(PlayerState state)
|
||||
{
|
||||
AnimationProvider.ShowSprite();
|
||||
}
|
||||
|
||||
public override void ExitState(PlayerState state)
|
||||
{
|
||||
|
||||
AnimationProvider.SetAnimationSpeed(Vector2.Zero);
|
||||
}
|
||||
|
||||
public override void Init(IStateMachine<PlayerState, CharacterBody3D> machine)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Process(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void PhysicsProcess(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue