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); }
public LatestPluginInfo(IVerCheckPlugin plugin, VCInterop interop) { Plugin = plugin; IsLatestVersion = false; interop.StartCoroutine(Util.GetGithubJson(interop, plugin, SetLatestVersion)); }