示例#1
0
 /// <summary>
 /// Shot managet is a Game Cpmponent not a Drawable Game Component somehting else must call draw and pass in a open spritebatch
 /// </summary>
 /// <param name="sb">open sprite batch for drawing</param>
 public void Draw(SpriteBatch sb)
 {
     //Draw each shot in the shots collection
     foreach (var s in Shots)
     {
         if (s.Visible) //Maybe someone will want invisible shots?
         {
             s.Draw(sb);
         }
     }
 }