Exemplo n.º 1
0
 public override void Draw(SpriteBatch spriteBatch) //spritebatch not used
 {
     currentDrawHeight = 0;
     foreach (KeyValuePair <string, CActor> kvp in actors)
     {
         if (rootDrawHeight == currentDrawHeight++)
         {
             root.drawMe();
         }
         kvp.Value.drawMe();
     }
     //If root is last
     if (rootDrawHeight == currentDrawHeight)
     {
         root.drawMe();
     }
 }
Exemplo n.º 2
0
 public override void Draw(SpriteBatch spriteBatch) //spritebatch not used
 {
     root.drawMe();
     foreach (KeyValuePair <string, CActor> kvp in actors)
     {
         kvp.Value.drawMe();
     }
 }