Ejemplo n.º 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();
        }
Ejemplo n.º 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()
        {
            updateChecker = new PeriodicUpdateChecker(periodMillis, delayMillis);
            updateChecker.RegisterUpdateCheckCallback(delegate() {
                CheckForPluginUpdate();

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

                CheckForKitUpdates();
            });

            EditorApplication.update += StartChecking;
        }
		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 ();
		}
Ejemplo n.º 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();
        }