Пример #1
0
 public void Draw(Effect effect)
 {
     if (UpVisible)
     {
         Up.Draw(effect);
     }
     if (DownVisible)
     {
         Down.Draw(effect);
     }
     if (ForwardVisible)
     {
         Forward.Draw(effect);
     }
     if (BackwardVisible)
     {
         Backward.Draw(effect);
     }
     if (LeftVisible)
     {
         Left.Draw(effect);
     }
     if (RightVisible)
     {
         Right.Draw(effect);
     }
 }
Пример #2
0
 public override void Draw(SpriteBatch batch)
 {
     base.Draw(batch);
     Left.Draw(batch);
     Right.Draw(batch);
     Up.Draw(batch);
     Down.Draw(batch);
 }