Пример #1
0
        public AsteroidControl(Game game, GameLogic gameLogic) : base(game)
        {
            Asteroids = new List <Asteroid>();
            Chunks    = new List <Chunk>();
            RockRadar = new List <Mod>();

            GameLogicRef = gameLogic;
            PlayerRef    = gameLogic.PlayerRef;
            PiratesRef   = gameLogic.PirirateRef;

            game.Components.Add(this);
        }
Пример #2
0
 public Asteroid(Game game, Player player, PirateControl pirate) : base(game)
 {
     PlayerRef  = player;
     PiratesRef = pirate;
     LoadContent();
 }