Пример #1
0
 public void draw(Canvas canvas) {
   for (GameObject component : mComponents) {
     component.draw(canvas);
   }
 }
Пример #2
0
 public void update(long time, GameObject parent) {
   for (GameObject component : mComponents) {
     component.update(time, this);
   }
 }