Пример #1
0
        static PeriodicUpdateManager()
        {
            if (!Net.Validator.Initialize(FileUtils.NormalizePathForPlatform(Application.dataPath)))
            {
                Utils.Warn("Failed to initialize validator");
            }

            // Loads the settings from disk if not yet loaded.
            if (Settings.Instance == null)
            {
                Utils.Warn("Failed to load settings. Update checks are disabled.");
                return;
            }

            updateChecker = new PeriodicUpdateChecker(periodMillis, delayMillis);
            updateChecker.RegisterUpdateCheckCallback(delegate() {
                CheckForPluginUpdate();

                if (firstInvokation)
                {
                    firstInvokation = false;
                    return;
                }

                CheckForKitUpdates();
            });
            updateChecker.Start();
        }
Пример #2
0
        static PeriodicUpdateManager()
        {
            if (!Net.Validator.Initialize (FileUtils.NormalizePathForPlatform (Application.dataPath))) {
                Utils.Warn ("Failed to initialize validator");
            }

            // Loads the settings from disk if not yet loaded.
            if (Settings.Instance == null) {
                Utils.Warn ("Failed to load settings. Update checks are disabled.");
                return;
            }

            updateChecker = new PeriodicUpdateChecker (periodMillis, delayMillis);
            updateChecker.RegisterUpdateCheckCallback (delegate () {
                CheckForPluginUpdate ();

                if (firstInvokation) {
                    firstInvokation = false;
                    return;
                }

                CheckForKitUpdates ();
            });
            updateChecker.Start ();
        }
		static PeriodicUpdateManager ()
		{
			if (!Net.Validator.Initialize (FileUtils.NormalizePathForPlatform (Application.dataPath))) {
				Utils.Warn ("Failed to initialize validator");
			}

			updateChecker = new PeriodicUpdateChecker (periodMillis, delayMillis);
			updateChecker.RegisterUpdateCheckCallback (delegate () {
				CheckForPluginUpdate ();

				if (firstInvokation) {
					firstInvokation = false;
					return;
				}

				CheckForKitUpdates ();
			});
			updateChecker.Start ();
		}
        private static void StartChecking()
        {
            if (!Net.Validator.Initialize(FileUtils.NormalizePathForPlatform(Application.dataPath)))
            {
                Utils.Warn("Failed to initialize validator");
            }

            // Loads the settings from disk if not yet loaded.
            if (Settings.Instance != null)
            {
                updateChecker.Start();
            }
            else
            {
                Utils.Warn("Failed to load settings. Update checks are disabled.");
            }

            EditorApplication.update -= StartChecking;
        }
Пример #5
0
        static PeriodicUpdateManager()
        {
            if (!Net.Validator.Initialize(FileUtils.NormalizePathForPlatform(Application.dataPath)))
            {
                Utils.Warn("Failed to initialize validator");
            }

            updateChecker = new PeriodicUpdateChecker(periodMillis, delayMillis);
            updateChecker.RegisterUpdateCheckCallback(delegate() {
                CheckForPluginUpdate();

                if (firstInvokation)
                {
                    firstInvokation = false;
                    return;
                }

                CheckForKitUpdates();
            });
            updateChecker.Start();
        }