예제 #1
0
 public static EffectsManager GetInstance()
 {
     if (instance == null)
     {
         instance = new EffectsManager();
     }
     return(instance);
 }
예제 #2
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);
        }
예제 #3
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));
 }