void UpdateAvailableCallback(object sender, UpdateAvailableEventArgs e) { Updater.Instance.UpdateAvailable -= UpdateAvailableCallback; NetworkManager.Instance.Notify (src, "Update available."); NetworkManager.Instance.Notify (src, "[CurVer] {0}", e.currentVersion); NetworkManager.Instance.Notify (src, "[NewVer] {0}", e.newVersion); }
void UpdateAvailableCallback(object sender, UpdateAvailableEventArgs e) { Updater.Instance.UpdateAvailable -= UpdateAvailableCallback; Updater.Instance.DownloadUpdate (args.First ()); }