public void update(float deltaTime) { bunnyHead.update(deltaTime); for (Rock rock : rocks) rock.update(deltaTime); for (GoldCoin goldCoin : goldcoins) goldCoin.update(deltaTime); for (Feather feather : feathers) feather.update(deltaTime); for (Carrot carrot : carrots) carrot.update(deltaTime); clouds.update(deltaTime); }