public PlayerShoot(Game game) : base(game)
 {
     SM = new RateLimitedShotManager(this.Game);
     ((RateLimitedShotManager)SM).LimitShotRate = .25f;
     ((RateLimitedShotManager)SM).MaxShots      = 100;
     this.Game.Components.Add(SM);
 }
Example #2
0
 public EnemyShoot(Game game) : base(game)
 {
     SM = new RateLimitedShotManager(this.Game);
     ((RateLimitedShotManager)SM).LimitShotRate = 0.1f;
     ((RateLimitedShotManager)SM).LimitShotRate = 100;
     this.Game.Components.Add(SM);
 }