but can i get it to stop playing the same way


1 | private int leafCount = 0 ; |
1 | Actor leaf = getOneIntersectingObject(Leaf. class ); |
1 2 3 | if (leaf != null ) { } |
1 2 | getWorld().removeObject( this ); leafCount++; |
1 2 3 | if (leafCount == 8 ) { } |
1 | getWorld().removeObject( this ); |
1 | getWorld().removeObject(leaf); |
1 | getWorld().removeObject( this ); |
1 | getWorld().removeObject(leaf); |