コード例 #1
0
        public SpawnManager(Game game)
            : base(game)
        {
            asteroids = new List <Asteroid>();
            timer     = new Utils.Timer();

            timer.AddTimer("creationTimer", .1f, createAsteroids, true);
            this.game = game;
            random    = new Random();
        }
コード例 #2
0
        public SpawnManager(Game game)
            : base(game)
        {
            asteroids = new List<Asteroid>();
            timer = new Utils.Timer();

            timer.AddTimer("creationTimer", .1f, createAsteroids, true);
            this.game = game;
            random = new Random();
        }
コード例 #3
0
 public override void Initialize()
 {
     missileTimer.AddTimer("DeleteMissile", MISSILE_DELETE_TIME, deleteSelf, false);
     base.Initialize();
 }