refactor: simplify RemoveDestroyedZombies method

This commit is contained in:
2026-05-05 11:19:12 +02:00
parent 5d5b3c8e9a
commit 2a64ddee13
+1 -4
View File
@@ -40,8 +40,5 @@ public class ZombieSpawnerLogic : MonoBehaviour
_lastSpawn = Time.time; _lastSpawn = Time.time;
} }
private void RemoveDestroyedZombies() private void RemoveDestroyedZombies() => _spawns.RemoveAll(zombie => zombie == null);
{
_spawns.RemoveAll(zombie => zombie == null);
}
} }