public void render()
        {
            //Muestra la vida solo del auto principal
            if (!this.auto_principal)
            {
                return;
            }

            text2d.Text     = "Vida: " + Math.Truncate(this.lifeLevel).ToString() + "%";
            text2d.Color    = Color.WhiteSmoke;
            text2d.Align    = TgcText2D.TextAlign.LEFT;
            text2d.Position = new Point((D3DDevice.Instance.Width / 2) - 100, 0);
            text2d.Size     = new Size(300, 100);
            text2d.changeFont(new Font("TimesNewRoman", 25, FontStyle.Bold));
            text2d.Color = Color.Green;
            if (this.lifeLevel < 65)
            {
                text2d.Color = Color.Yellow;
            }
            if (this.lifeLevel < 40)
            {
                text2d.Color = Color.Orange;
            }
            if (this.lifeLevel < 20)
            {
                text2d.Color = Color.Red;
            }

            var vidaEnemigo = 0f;

            if (ControladorDeVehiculos.getInstance().getEnemigoFinal() != null)
            {
                vidaEnemigo = ControladorDeVehiculos.getInstance().getEnemigoFinal().getLifeLevel().nivelDeVida();
            }
            else
            {
                vidaEnemigo = ControladorDeVehiculos.getInstance().getEnemigo().getLifeLevel().nivelDeVida();
            }

            text2d2.Text     = "Vida Enemigo: " + Math.Truncate(vidaEnemigo).ToString() + "%";
            text2d2.Color    = Color.WhiteSmoke;
            text2d2.Align    = TgcText2D.TextAlign.LEFT;
            text2d2.Position = new Point((D3DDevice.Instance.Width / 2) + 100, 0);
            text2d2.Size     = new Size(330, 100);
            text2d2.changeFont(new Font("TimesNewRoman", 25, FontStyle.Bold));
            text2d2.Color = Color.Green;
            if (vidaEnemigo < 65)
            {
                text2d2.Color = Color.Yellow;
            }
            if (vidaEnemigo < 40)
            {
                text2d2.Color = Color.Orange;
            }
            if (vidaEnemigo < 20)
            {
                text2d2.Color = Color.Red;
            }

            text2d.render();
            text2d2.render();
        }
 public ControladorDeVehiculos(TwistedMetal env)
 {
     this.env   = env;
     myInstance = this;
     loader     = new TgcSceneLoader();
 }