public override void Dispose()
 {
     _mrfusionOpen?.Dispose();
     _mrfusionClosed?.Dispose();
     _mrFusion?.Dispose();
     _mrFusionHandle?.Dispose();
 }
Пример #2
0
 public override void Dispose()
 {
     _wormholeRT?.Dispose();
     _coilsProp?.Dispose();
     _wheelPtfxes?.ForEach(x => x?.Dispose());
     _separatedCoils?.ForEach(x => x?.Dispose());
     _sparks?.ForEach(x => x?.Dispose());
     _wormholeScaleform?.Unload();
     _sparkPTFX?.StopNonLooped();
     _sparkProp?.Dispose();
 }
Пример #3
0
        public override void Dispose()
        {
            wheelAnims?.Dispose();
            _hoverGlowing?.Dispose();
            ventGlowing?.Dispose();

            foreach (var prop in _underbodyLights)
            {
                prop.Dispose();
            }
        }
Пример #4
0
        public void Dispose()
        {
            rpmNeedle?.Dispose();
            speedNeedle?.Dispose();
            fuelNeedle?.Dispose();
            oilNeedle?.Dispose();
            tempNeedle?.Dispose();
            voltNeedle?.Dispose();
            doorIndicator?.Dispose();
            leftFan?.Dispose();
            rightFan?.Dispose();

            suspensionLeftFront?.Dispose();
            suspensionLeftRear?.Dispose();
            suspensionRightFront?.Dispose();
            suspensionRightRear?.Dispose();
        }
Пример #5
0
        private void LoadLights(bool force = false)
        {
            if (!force && _isNight == Utils.IsNight())
            {
                return;
            }

            _isNight = Utils.IsNight();

            _hoodboxLights?.Dispose();

            if (_isNight)
            {
                _hoodboxLights = new AnimateProp(Vehicle, ModelHandler.HoodboxLightsNight, "bonnet");
            }
            else
            {
                _hoodboxLights = new AnimateProp(Vehicle, ModelHandler.HoodboxLights, "bonnet");
            }
        }
Пример #6
0
 public override void Dispose()
 {
     speedoProp?.Dispose();
     _compass?.Dispose();
 }
 public override void Dispose()
 {
     plutoniumCap?.Dispose();
 }
Пример #8
0
 public override void Dispose()
 {
     tfcOn?.Dispose();
     tfcOff?.Dispose();
     tfcHandle?.Dispose();
 }
Пример #9
0
 public override void Dispose()
 {
     _spark.Dispose();
 }
Пример #10
0
 public override void Dispose()
 {
     _compass?.Dispose();
 }