sun now drops properly
This commit is contained in:
parent
b551c7f012
commit
0f6445d677
2 changed files with 34 additions and 0 deletions
|
|
@ -13,9 +13,13 @@ public partial class PlantSunSpawner : Node2D
|
|||
public void Spawn()
|
||||
{
|
||||
var sun = _sunScene.Instantiate<Sun>();
|
||||
|
||||
sun.amount = _amountPerSun;
|
||||
|
||||
PoolContainer.Instance.Projectiles.AddChild(sun);
|
||||
sun.GlobalPosition = GlobalPosition;
|
||||
|
||||
var mover = new DropMover();
|
||||
sun.AddChild(mover);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue