private void disable(ModuleEngines m) { m.Shutdown(); m.DeactivateRunningFX(); m.DeactivatePowerFX(); m.enabled = false; }
// "Shutdown Engine" public void Shutdown() { if (engineType == EngineModuleType.UNKNOWN) { return; } engine.Shutdown(); engine.DeactivateRunningFX(); engine.DeactivatePowerFX(); }
public void Shutdown() { if (engineType == EngineModuleType.UNKNOWN) { return; } if (engineType == EngineModuleType.ENGINE) { engine.Shutdown(); engine.DeactivateRunningFX(); engine.DeactivatePowerFX(); } else { engineFX.Shutdown(); engineFX.DeactivateLoopingFX(); } }