livingEnemies method
Used to get living "Enemies" or oly visibles.
Implementation
@override
Iterable<Enemy> livingEnemies({bool onlyVisible = false}) {
return enemies(onlyVisible: onlyVisible)
.where((element) => !element.isDead);
}
Used to get living "Enemies" or oly visibles.
@override
Iterable<Enemy> livingEnemies({bool onlyVisible = false}) {
return enemies(onlyVisible: onlyVisible)
.where((element) => !element.isDead);
}