From add4920e2265329d67cb5ae143abb5289b0a6d88 Mon Sep 17 00:00:00 2001 From: UnEpicier Date: Mon, 23 Oct 2023 11:21:47 +0200 Subject: [PATCH] Fix Bringer of Death spawn limit --- Assets/Player/Scripts/Spawner.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Player/Scripts/Spawner.cs b/Assets/Player/Scripts/Spawner.cs index 26dd96f..fcac9c3 100644 --- a/Assets/Player/Scripts/Spawner.cs +++ b/Assets/Player/Scripts/Spawner.cs @@ -10,9 +10,9 @@ public class Spawner : MonoBehaviour private float _radius = 5f; - private int spawnedMayors = 0; - private int spawnedMinautor = 0; - private int spawnedBringerOfDeath = 0; + [SerializeField] private int spawnedMayors = 0; + [SerializeField] private int spawnedMinautor = 0; + [SerializeField] private int spawnedBringerOfDeath = 0; private readonly int mayorsLimit = 300; private readonly int minautorsLimit = 15; @@ -77,7 +77,7 @@ public class Spawner : MonoBehaviour case "Minautor": spawnedMinautor++; break; - case "Bringer of Death": + case "Bringer": spawnedBringerOfDeath++; break; }