protected override void LoadContent() { #if !XBOX switch (GameColor) { case GameColors.Red: particles = new ParticleSystem(Game, Game.Content, "RedProjectileSettings"); break; case GameColors.Blue: particles = new ParticleSystem(Game, Game.Content, "BlueProjectileSettings"); break; case GameColors.Green: particles = new ParticleSystem(Game, Game.Content, "GreenProjectileSettings"); break; case GameColors.Yellow: particles = new ParticleSystem(Game, Game.Content, "YellowProjectileSettings"); break; } particles.Initialize(); particleEmitter = new ParticleEmitter(particles, 10, Position); #endif //model = Game.Content.Load<Model>("sphere"); model = Game.Content.Load<Model>("Sphere2"); base.LoadContent(); }
public override void Initialize() { collisionManager = (ICollisionManager)Game.Services.GetService(typeof(ICollisionManager)); camera = (ICamera)Game.Services.GetService(typeof(ICamera)); player = (IPlayer)Game.Services.GetService(typeof(IPlayer)); particleSystem = new ParticleSystem(Game, Game.Content, "ExplosionSettings"); particleSystem.Initialize(); particleSystem.On = false; particleEmitter = new ParticleEmitter(particleSystem, 100, position); base.Initialize(); }