public static EffectsManager GetInstance() { if (instance == null) { instance = new EffectsManager(); } return(instance); }
public void Update(GameTime gameTime) { this.gameTime = gameTime; foreach (var actor in actors) { actor.Value.Update(gameTime); } foreach (var actor in actors) { EffectsManager.GetInstance().BulletIntersects(actor.Value); actor.Value.Update(gameTime); } EffectsManager.GetInstance().BulletIntersects(Player); }
public void Shoot(string name, float locationX, float locationY, float velocityX, float velocityY, double time) { EffectsManager.GetInstance().AddBulletParticle(name, new Vector2(locationX, locationY), new Vector2(velocityX, velocityY)); }