Пример #1
0
 public override void OnPaint(GameWorld gameWorld, Graphics graphics)
 {
     graphics.DrawImage(Representation(gameWorld),
                        (float)Shape[0].x, (float)Shape[0].y, (float)Width, (float)Height);
 }
Пример #2
0
 public Image Representation(GameWorld gameWorld)
 {
     return(gameWorld.Type == WorldType.MainWorld ? ExitImageMain : ExitImageShadow);
 }