You've already forked zumbi-game
refactor: simplify RemoveDestroyedZombies method
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user