Prepicked plants editor

This commit is contained in:
Rendo 2025-07-29 04:08:05 +05:00
commit 56f75a5d06
43 changed files with 532 additions and 50 deletions

View file

@ -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

View file

@ -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;