public void AbandonModule(string moduleName) { ProfilingUtility.BeginSample("ModuleManager.AbandonModule_", moduleName); IModuleInterface m = GetModule(moduleName); if (m != null) { if (m.status != EModuleStatus.None) { m.ShutdownModule(EModuleShutdownReason.Runtime); m.status = EModuleStatus.None; } } ProfilingUtility.EndSample(); }