Death and Rebirth

This commit is contained in:
Marco 2025-02-20 16:12:53 +01:00
commit be52d0e081
11 changed files with 309 additions and 83 deletions

View file

@ -7,9 +7,20 @@ public partial class AutodeleteParticle : GpuParticles2D
[Export]
public double LifeTime { get; private set; }
[Export]
public bool AutoStart { get; private set; }
private double _timer = 0;
public override void _Ready()
{
if (AutoStart)
{
Init();
}
}
public void Init()
{
this.Emitting = true;