This commit is contained in:
Rendo 2025-07-13 04:55:33 +05:00
commit bb7c0f63c4
12 changed files with 482 additions and 28 deletions

View file

@ -63,4 +63,10 @@ public partial class PoolContainer : Node2D
Instance.Particles.AddChild(emitter);
emitter.GlobalPosition = position;
}
public void SpawnParticles(PackedScene particles, Transform2D transform)
{
var emitter = particles.Instantiate<StandardParticles>();
Instance.Particles.AddChild(emitter);
emitter.GlobalTransform = transform;
}
}