fixed zombie spawning in wrong pool
This commit is contained in:
parent
8da7ff54a6
commit
0922b96416
3 changed files with 5 additions and 7 deletions
|
|
@ -30,7 +30,7 @@ public partial class InitialPackedSceneSpawner : Node
|
|||
|
||||
if (entity is RuntimeZombieData)
|
||||
{
|
||||
PoolContainer.Instance.Structures.AddChild(node);
|
||||
PoolContainer.Instance.Zombies.AddChild(node);
|
||||
node.GlobalPosition = position + new Vector2(0,0.5f*FieldParams.TileHeight);
|
||||
}
|
||||
else if (entity is RuntimePlantData plant)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue