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

@ -38,6 +38,11 @@ public partial class OpenCloseActorAnimationManager3D : Node
}
}
public void Toggle(bool state)
{
AnimationPlayer.Play(state ? OpeningAnimationName : ClosingAnimationName);
}
public void PlayOpening()
{
AnimationPlayer.Play(OpeningAnimationName);

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);
}
}
}

View file

@ -0,0 +1 @@
uid://cbnblvav5ck8a