Esempio n. 1
0
        public static IEnumerator GetGithubJson(VCInterop interop, IVerCheckPlugin plugin,
                                                Action <GithubReleasePage> method)
        {
            yield return(interop.StartCoroutine(interop.GithubInterop(plugin.GithubAuthor, plugin.GithubProjName)));

            var page = interop.CoroutineResults.FirstOrDefault(o =>
                                                               o.author == plugin.GithubAuthor && o.projName == plugin.GithubProjName).Page;

            Logger.Log($"Pages is Null? {page == null}");
            method.Invoke(page);
        }
Esempio n. 2
0
 public LatestPluginInfo(IVerCheckPlugin plugin, VCInterop interop)
 {
     Plugin          = plugin;
     IsLatestVersion = false;
     interop.StartCoroutine(Util.GetGithubJson(interop, plugin, SetLatestVersion));
 }