Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private GameObject getSecondNearest(final GameObject curRock,
- final int... ids) {
- return Objects.getNearest(new Filter<GameObject>() {
- @Override
- public boolean accept(GameObject o) {
- if (curRock != null) {
- if (curRock.equals(o)) {
- return false;
- }
- for (int id : ids) {
- if (o.getId() == id) {
- return true;
- }
- }
- }
- return false;
- }
- });
- }
Add Comment
Please, Sign In to add comment