コード例 #1
0
        protected static void SearchForUpdate(string currentVersion, string userName, string repoName)
        {
            BlueUpdater updater = new BlueUpdater(userName, repoName);

            if (updater.IsNewVersionAvailable(currentVersion))
            {
                if (EditorUtility.DisplayDialog(repoName, "There is a new version available", "Download", "Cancel"))
                {
                    DownloadLatest(updater);
                }
            }
            else
            {
                EditorUtility.DisplayDialog(repoName, "You are up to date", "Ok");
            }
        }
コード例 #2
0
 private static void DownloadLatest(BlueUpdater updt)
 {
     updt.DownloadPackage();
 }