Пример #1
0
 public override void Dispose()
 {
     Plaza.DisposeAll();
     AutoFisico1.Dispose();
     GrupoPolicias.Dispose();
     Cielo.Dispose();
     Sonidos.Dispose();
     Hud.Dispose();
     Invisible.Dispose();
 }
Пример #2
0
        public override void Dispose()
        {
            Plaza.DisposeAll();
            AutoFisico1.Dispose();
            GrupoPolicias.Dispose();
            Cielo.Dispose();
            Sonidos.Dispose();
            Hud.Dispose();

            foreach (var auto in Players)
            {
                auto.sonidoAceleracion.dispose();
                auto.sonidoDesaceleracion.dispose();
                auto.frenada.dispose();
                auto.choque.dispose();
            }

            Invisibilidad.Dispose();
            g_pRenderTarget.Dispose();
            g_pVBV3D.Dispose();
            g_pDepthStencil.Dispose();
        }