mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-22 19:43:55 +00:00
Remade spawn coordinates system
This commit is contained in:
parent
3681614196
commit
d633618633
5 changed files with 85 additions and 12 deletions
|
|
@ -40,7 +40,7 @@ public partial class Barrel : Area2D, IDestructible
|
|||
|
||||
private void CreateDebris()
|
||||
{
|
||||
this.CreateChild<Barrel>(DebrisScene);
|
||||
this.CreateSibling<Barrel>(DebrisScene);
|
||||
|
||||
// if (DebrisScene == null) return;
|
||||
// var debris = DebrisScene.Instantiate<Barrel>();
|
||||
|
|
@ -55,7 +55,7 @@ public partial class Barrel : Area2D, IDestructible
|
|||
GD.PushWarning("Object has no particles associated");
|
||||
return;
|
||||
}
|
||||
var particle = this.CreateChild<GpuParticles2D>(ExplosionParticles);
|
||||
var particle = this.CreateSibling<GpuParticles2D>(ExplosionParticles);
|
||||
if (particle == null) return;
|
||||
|
||||
particle.Emitting = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue