public void Shoot()
 {
     if (bullets > 0)
     {
         bullets--;
         Bullet shot = new Bullet(Position, this.rotation, bulletTexture, this.spriter, this.graphics, this is Player, shotsFired, this);
         shot.speed = bulletSpeed;
         shotsFired.Add(shot);
         shooting = true;
         timer = 0;
     }
 }
Ejemplo n.º 2
0
 public void Shoot()
 {
     Bullet shot = new Bullet(this.Position, this.rotation, BulletTexture, this.Spriter, this.graphics);
     ShotsFired.Add(shot);
     shooting = true;
     timer = 0;
 }