Simplified level load and Utitility.Seedpackets
This commit is contained in:
parent
1631bd87ce
commit
3a5154f051
7 changed files with 15 additions and 31 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue