Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public override void draw(SpriteBatch spriteBatch, IComponent component)
 {
     transition.draw(spriteBatch, component);
 }