protected void Awake()
        {
            if (IncompatiblePluginDetector.AnyIncompatiblePlugins())
            {
                return;
            }

            SceneManager.sceneLoaded           += SceneLoaded;
            DisableCameraTarget.SettingChanged += (sender, args) => ApplyPatches();
            DisableCharaName.SettingChanged    += (sender, args) => ApplyPatches();

            Hooks.InstallHooks();
        }
예제 #2
0
        internal void Awake()
        {
            SceneManager.sceneLoaded += SceneLoaded;

            DisableCharaName.SettingChanged += (sender, args) =>
            {
                if (FindObjectOfType <CustomScene>())
                {
                    ToggleCharaName();
                }
            };

            Hooks.InstallHooks();
        }
        internal void Awake()
        {
            //Test setup.xml for validity, delete if it has junk data
            if (File.Exists("UserData/setup.xml"))
            {
                TestSetupXml();
            }

            //Create a setup.xml if there isn't one
            if (!File.Exists("UserData/setup.xml"))
            {
                CreateSetupXml();
            }

            Hooks.Apply();
        }
        internal void Awake()
        {
            if (IncompatiblePluginDetector.AnyIncompatiblePlugins())
            {
                return;
            }

            SceneManager.sceneLoaded += SceneLoaded;

            DisableCharaName.SettingChanged += (sender, args) =>
            {
                if (FindObjectOfType <CustomScene>())
                {
                    ToggleCharaName();
                }
            };

            Hooks.InstallHooks();
        }
        internal void Awake()
        {
            if (IncompatiblePluginDetector.AnyIncompatiblePlugins())
            {
                return;
            }

            //Test setup.xml for validity, delete if it has junk data
            if (File.Exists("UserData/setup.xml"))
            {
                TestSetupXml();
            }

            //Create a setup.xml if there isn't one
            if (!File.Exists("UserData/setup.xml"))
            {
                CreateSetupXml();
            }

            Hooks.Apply();
        }