cucumber
This commit is contained in:
parent
2156c6a166
commit
bb7c0f63c4
12 changed files with 482 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue