Пример #1
0
 public GameScreen(SpaceAdventureGame game, string name, Color clearColor)
     : base(game, name, clearColor)
 {
     _spriteBatch = game.SpriteBatch ?? throw new AccessViolationException("Games SpriteBatch not initialized");
     _content     = game.Content;
 }
Пример #2
0
 public GameScreen(SpaceAdventureGame game, string name)
     : this(game, name, Color.CornflowerBlue)
 {
 }