コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">Game Entity</param>
 /// <param name="parent">parent GameScene</param>
 public AsteroidManager(Game game, GameScene parent) : base(game)
 {
     this.parent = parent;
     random      = new Random();
     createTimer = 0;
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">Game Entity</param>
 /// <param name="parent">parent GameScene</param>
 public AlienSpacecraft(Game game, GameScene parent)
     : this(game, parent, Vector2.Zero)
 {
 }