private void AddProjectile(Vector2 position) { Projectile projectile = new Projectile(); projectile.Initialize(GraphicsDevice.Viewport, projectileTexture, position); projectiles.Add(projectile); }
private void AddProjectile(Vector2 position, float angle, Player player) { Projectile projectile = new Projectile(); projectile.Initialize(GraphicsDevice.Viewport, projectileTexture, position, angle, player, textures); projectiles.Add(projectile); tankFire.Play(0.6f, 0, 0); }