Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DrawingSystem extends System {
- public DrawingSystem(List<Entity> entityList) {
- super(entityList);
- }
- public void update(Batch batch) {
- for (Entity entity : entityList) {
- removeIfNeccesarry(entity);
- //code
- }
- }
- public void removeIfNeccesarry(Entity entity){
- if(entity.toRemove){
- entityList.remove(entity);
- }
- }
- }
Add Comment
Please, Sign In to add comment