Enemy debris

This commit is contained in:
Marco 2025-08-05 16:24:21 +02:00
commit 0293291315
19 changed files with 175 additions and 27 deletions

View file

@ -0,0 +1,22 @@
using Cirno.Scripts.Resources;
using Godot;
namespace Cirno.Scripts.Actors;
public partial class DeathDebris3D : Node3D
{
[Export] public EnemyResource EnemyResource { get; private set; }
[Export] public AnimatedSprite3D Sprite { get; private set; }
public void Init(EnemyResource enemyResource)
{
EnemyResource = enemyResource;
if (EnemyResource.DeathAnimation is not null)
{
Sprite.SetSpriteFrames(enemyResource.DeathAnimation);
}
Sprite.Play();
}
}

View file

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