示例#1
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     foreach (object o in GameObjects)
     {
         Interfaces.IDrawable drawableObj = o as Interfaces.IDrawable;
         if (drawableObj != null)
         {
             drawableObj.Draw(spriteBatch);
         }
     }
 }
示例#2
0
 public void AddGameObject(Interfaces.IDrawable gameObject)
 {
     this.DrawableObjects.Add(gameObject);
 }