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"); } // 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 (); }
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(); }