Simplified level load and Utitility.Seedpackets

This commit is contained in:
Rendo 2025-07-17 11:19:09 +05:00
commit 3a5154f051
7 changed files with 15 additions and 31 deletions

View file

@ -39,7 +39,7 @@ public partial class ZombieLevelPreviewer : Node2D
{
List<ZombieResource> zombies = new();
foreach (var wave in RuntimeLevelData.Instance.levelResource.waves)
foreach (var wave in RuntimeLevelData.LevelResource.waves)
{
foreach (var spawn in wave.zombiesOrdered)
{

View file

@ -8,7 +8,7 @@ public class ChoosableHandler : SeedpacketHandler, ISeedpacketPress
public void Pressed()
{
if (LevelGUIElements.Instance.SeedpacketsHotbar.GetChildCount() > 9) return;
if (LevelGUIElements.Instance.SeedpacketsHotbar.GetChildCount() >= Utility.MaxSeedpackets) return;
_owner.disablePacket = true;
var hotbarSeedpacket = Seedpacket.Prefab.Instantiate<Seedpacket>();