Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Delete particle from pool
- * @param effect
- */
- public void remove(PooledEffect effect) {
- effect.free();
- Iterator<PooledEffect> it = pool.iterator();
- while (it.hasNext()) {
- PooledEffect actual = it.next();
- if(actual.equals(effect)) {
- it.remove();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement