Esempio n. 1
0
 /// <summary>
 /// Draws the GameObject to the screen.
 /// </summary>
 /// <param name="spriteBatch">The spriteBatch to draw to.</param>
 void IGameObject.Draw(SpriteBatch spriteBatch)
 {
     if (OnDraw != null)
     {
         foreach (Func <SpriteBatch, bool> delg in OnDraw.GetInvocationList())
         {
             if (!delg.Invoke(spriteBatch))
             {
                 return;
             }
         }
     }
 }