public Avacado(float x, float y, float width, float height, int roomId) { super(x, y, width, height); avacadosMade++; this.id = avacadosMade; this.roomId = roomId; interactDistance = 80; AvacadoManager.get().addAvacadoToWorld(this); // add this avacado to the world collected = false; }
@Override public void interact(GameObject instance) { AvacadoManager.get().pickUpAvacado(this); }