Exemplo n.º 1
0
        public static void DropToDefault()
        {
            ISN_Settings.Delete();
            ISD_Settings.Delete();

            //Looks like uity bug.
            //As always let's use the delay call magic
            EditorApplication.delayCall += () => {
                EditorApplication.delayCall += () => {
                    Refresh();
                    Resolve(forced: true);
                };
            };
        }
Exemplo n.º 2
0
        //--------------------------------------
        // Static
        //--------------------------------------

        public static void Resolve(bool forced = false)
        {
            var pluginVersionUpdated = ISN_Settings.UpdateVersion(ISN_Settings.FormattedVersion) && !SA_PluginTools.IsDevelopmentMode;

            Refresh();
            foreach (var resolver in Resolvers)
            {
                resolver.Run(pluginVersionUpdated || forced);
            }

            foreach (var resolver in Resolvers)
            {
                resolver.RunAdditionalPreprocess();
            }
        }
        //--------------------------------------
        // Static
        //--------------------------------------


        public static void Resolve(bool forced = false)
        {
            Refresh();
            bool plgingVersionUpdated = ISN_Settings.UpdateVersion(ISN_Settings.FormattedVersion);

            foreach (var resolver in Resolvers)
            {
                resolver.Run(plgingVersionUpdated || forced);
            }


            foreach (var resolver in Resolvers)
            {
                resolver.RunAdditionalPreprocess();
            }
        }
Exemplo n.º 4
0
 public static void SaveSettings()
 {
     ISN_Settings.Save();
     ISD_Settings.Save();
     ISN_Preprocessor.Refresh();
 }