public static void Unload() { foreach (var plugin in m_plugins) { plugin.Dispose(); } m_plugins.Clear(); m_instance.Dispose(); m_instance = null; }
public static void Load() { Debug.Assert(m_instance == null, "Loading plugins multiple times without unload!"); if (m_gamePluginAssembly != null) { LoadPlugins(m_gamePluginAssembly); } if (m_userPluginAssembly != null) { LoadPlugins(m_userPluginAssembly); } m_instance = new MyPlugins(); }
public static void Unload() { foreach (var plugin in m_plugins) { plugin.Dispose(); } m_plugins.Clear(); m_instance.Dispose(); m_instance = null; m_gamePluginAssembly = null; m_userPluginAssembly = null; m_sandboxAssembly = null; m_sandboxGameAssembly = null; }
public static void Unload() { foreach (var plugin in m_plugins) { plugin.Dispose(); } m_plugins.Clear(); m_instance.Dispose(); m_instance = null; m_gamePluginAssembly = null; m_userPluginAssembly = null; m_sandboxAssembly = null; m_sandboxGameAssembly = null; m_gameObjBuildersPlugin = null; }
public static void Load() { Debug.Assert(m_instance == null, "Loading plugins multiple times without unload!"); if (m_gamePluginAssembly != null) LoadPlugins(m_gamePluginAssembly); if (m_userPluginAssembly != null) LoadPlugins(m_userPluginAssembly); m_instance = new MyPlugins(); }