Esempio n. 1
0
        public override void Draw(GameTime gameTime)
        {
            _particleEngine.Draw(gameTime);
            float angle = -1 * MathHelper.ToRadians(GenericHelperModule.GetProperOrientation(this.Dir));

            this.SetOrientation(angle);
            base.Draw(gameTime);
        }
Esempio n. 2
0
 public void Draw(GameTime gameTime)
 {
     if (IsExploded)
     {
         timeToVanish++;
         if (timeToVanish == 150)
         {
             StaticData.EngineManager.RocketsManagerEngine.ListOfRockets.Remove(this);
         }
     }
     // Draw particles
     _particleEngine.Draw(gameTime);
 }