From 2a64ddee13a6f410aeb53b8e3f5bbf1e5ab003c9 Mon Sep 17 00:00:00 2001 From: br0kenpixel Date: Tue, 5 May 2026 11:19:12 +0200 Subject: [PATCH] refactor: simplify `RemoveDestroyedZombies` method --- Assets/Scripts/ZombieSpawnerLogic.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Scripts/ZombieSpawnerLogic.cs b/Assets/Scripts/ZombieSpawnerLogic.cs index 3161fdd..512c8f2 100644 --- a/Assets/Scripts/ZombieSpawnerLogic.cs +++ b/Assets/Scripts/ZombieSpawnerLogic.cs @@ -40,8 +40,5 @@ public class ZombieSpawnerLogic : MonoBehaviour _lastSpawn = Time.time; } - private void RemoveDestroyedZombies() - { - _spawns.RemoveAll(zombie => zombie == null); - } + private void RemoveDestroyedZombies() => _spawns.RemoveAll(zombie => zombie == null); }