public virtual Bullet GenerateBullet() { var bullet = new Bullet { Content = AnimatedObject.FromMetadata(Game.Content.Load<AnimatedObjectMetadata>(BulletContentPath), Game.Content), Speed = BulletSpeed, HitDamage = AttackDamage }; bullet.Initialize(Game, SpriteBatch, Camera); return bullet; }
public virtual Bullet GenerateBullet() { var bullet = new Bullet { Content = AnimatedObject.FromMetadata(Game.Content.Load<AnimatedObjectMetadata>(BulletAssetName), Game.Content), Speed = BulletSpeed, HitDamage = AttackDamage }; bullet.Initialize(Game, SpriteBatch, Game.Services.GetService<GameState>().Camera); return bullet; }