public void drawTransitions(SpriteBatch spriteBatch, TransitionState state) { switch (state) { case TransitionState.intro: if (intro != null) { intro.draw(spriteBatch, this); } break; case TransitionState.selected: if (select != null) { select.draw(spriteBatch, this); } break; case TransitionState.exit: if (exit != null) { exit.draw(spriteBatch, this); } break; } }
public override void draw(SpriteBatch spriteBatch, IComponent component) { transition.draw(spriteBatch, component); }