Prepicked plants editor
This commit is contained in:
parent
9eba7d3069
commit
56f75a5d06
43 changed files with 532 additions and 50 deletions
|
|
@ -39,7 +39,7 @@ public partial class InitialPackedSceneSpawner : Node
|
|||
{
|
||||
PoolContainer.Instance.Plants.AddChild(plant);
|
||||
node.GlobalPosition = position;
|
||||
plant.Resource = GameRegistry.GetEntityByName(plant.internal_id) as PlantResource;
|
||||
plant.Resource = GameRegistry.GetEntityByName(plant.Resource.GetInternalID()) as PlantResource;
|
||||
PoolContainer.Instance.EntityField[plant.Resource.Layer].Add(plant.GlobalPosition, plant);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ public partial class SurvivalZombieSpawner : Node
|
|||
|
||||
foreach (var zom in wave)
|
||||
{
|
||||
ZombieSequencer.Instance.Add(zom.internal_id);
|
||||
ZombieSequencer.Instance.Add(zom.GetInternalID());
|
||||
}
|
||||
|
||||
big_wave = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue