Пример #1
0
        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);
        }
Пример #2
0
 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));
 }