예제 #1
0
        public void OnEnabled()
        {
            AssetEffectLoader.Ensure();

            if (_harmony == null)
            {
                _harmony = HarmonyInstance.Create(HarmonyId);
                _harmony.PatchAll(GetType().Assembly);
                WorkshopAssetUploadPanelPatch.Apply(_harmony);
            }
        }
예제 #2
0
        public void OnDisabled()
        {
            AssetEffectLoader.Uninstall();

            if (_harmony != null)
            {
                WorkshopAssetUploadPanelPatch.Revert(_harmony);
                _harmony.UnpatchAll(HarmonyId);
                _harmony = null;
            }

            foreach (var effect in EffectCollection.Effects)
            {
                if (effect is LightEffect)
                {
                    if (((LightEffect)effect).m_rotationSpeed != 0f)
                    {
                        Debug.Log(effect.name);
                    }
                }
            }
        }