Preliminary lasers

This commit is contained in:
Marco 2025-10-09 09:11:25 +02:00
commit 7cb5bfb593
20 changed files with 1779 additions and 1049 deletions

View file

@ -0,0 +1,23 @@
using Godot;
namespace Cirno.Scripts.Actors._3D;
public partial class Turret3DAnimator : Node
{
[Export] public AnimationPlayer Animator { get; private set; }
[Export] public StringName OnAnimationName { get; private set; }
[Export] public StringName OffAnimationName { get; private set; }
public void ChangeState(bool state)
{
if (state)
{
Animator?.Play(OnAnimationName);
}
else
{
Animator?.Play(OffAnimationName);
}
}
}