Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. /**
  2. * Delete particle from pool
  3. * @param effect
  4. */
  5. public void remove(PooledEffect effect) {
  6. effect.free();
  7. Iterator<PooledEffect> it = pool.iterator();
  8. while (it.hasNext()) {
  9. PooledEffect actual = it.next();
  10. if(actual.equals(effect)) {
  11. it.remove();
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement