示例#1
0
 public void shoot()
 {
     if (getShotCooldown().ElapsedMilliseconds >= 1000 / getFirerate())
     {
         getShotCooldown().Restart();
         BulletMediator.playerShot(this);
     }
 }
示例#2
0
 public void shoot()
 {
     if (shotCooldown.ElapsedMilliseconds >= 1000 / fireRate)
     {
         shotCooldown.Restart();
         BulletMediator.playerShot(this);
     }
 }