mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 02:35:54 +00:00
Death and Rebirth
This commit is contained in:
parent
ba21b30a4d
commit
be52d0e081
11 changed files with 309 additions and 83 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue