Pathfinding.AstarUpdateChecker.CheckForUpdates C# (CSharp) Method

CheckForUpdates() static private method

static private CheckForUpdates ( ) : bool
return bool
        static bool CheckForUpdates()
        {
            if (updateCheckDownload != null && updateCheckDownload.isDone) {

                if (!string.IsNullOrEmpty (updateCheckDownload.error)) {
                    Debug.LogWarning ("There was an error checking for updates to the A* Pathfinding Project\n" +
                                      "The error might disappear if you switch build target from Webplayer to Standalone because of the webplayer security emulation\nError: " +
                                      updateCheckDownload.error);
                    updateCheckDownload = null;
                    return false;
                }
                UpdateCheckCompleted (updateCheckDownload.text);
                updateCheckDownload = null;
            }

            // Check if it is time to check for updates
            if (System.DateTime.Compare (lastUpdateCheck.AddDays (updateCheckRate),System.DateTime.UtcNow) < 0) {
                DownloadVersionInfo();
            }

            return updateCheckDownload != null;
        }