Beispiel #1
0
  @Override
  public void dispose() {
    for (ModelInstance obj : instances) if (obj instanceof GameObject) ((GameObject) obj).dispose();
    instances.clear();

    physics.dispose();
  }
Beispiel #2
0
 private void updateGameObjectsInformations(float delta) {
   for (GameObject o : instances) {
     o.update(delta);
   }
 }