public void OnDisabled()
        {
            Log.Info("OnDisabled() called Name:" + Name);

            _isEnabled = false;

            if (Extensions.InGame | Extensions.InAssetEditor)
            {
                LoadingExtension.Instance.OnReleased();
            }

            PrefabUtils.ClearCache();
            LoadingWrapperPatch.OnPostLevelLoaded   -= PrefabUtils.CachePrefabs;
            LoadingManager.instance.m_levelUnloaded -= PrefabUtils.ClearCache;

#if DEBUG
            LoadingWrapperPatch.OnPostLevelLoaded -= TestOnLoad.Test;
#endif

            Options.instance = null;
        }
        public void OnDisabled()
        {
            Log.Info("OnDisabled() called Name:" + Name);

            _isEnabled = false;

            if (HelpersExtensions.InGameOrEditor)
            {
                HarmonyUtil.UninstallHarmony(LoadingExtension.HARMONY_ID);
            }

            PrefabUtils.ClearCache();
            LoadingWrapperPatch.OnPostLevelLoaded   -= PrefabUtils.CachePrefabs;
            LoadingManager.instance.m_levelUnloaded -= PrefabUtils.ClearCache;

#if DEBUG
            LoadingWrapperPatch.OnPostLevelLoaded -= TestOnLoad.Test;
#endif

            Options.instance = null;
        }