/** * Draws the group and its children. The default implementation calls {@link * #applyTransform(SpriteBatch)} if needed, then {@link #drawChildren(SpriteBatch, float)}, then * {@link #resetTransform(SpriteBatch)} if needed. */ public void draw(SpriteBatch batch, float parentAlpha) { if (transform) applyTransform(batch); drawChildren(batch, parentAlpha); if (transform) resetTransform(batch); }