private static IEnumerator <WWW> CheckWebChanges(WWW www) { yield return(www); try { GA_UpdateWindow.SetChanges(www.text); string skippedVersion = EditorPrefs.GetString("ga_skip_version", ""); if (!skippedVersion.Equals(GA_UpdateWindow.GetNewVersion())) { OpenUpdateWindow(); } } catch {} }
private static IEnumerator <WWW> CheckWebChanges(WWW www) { yield return(www); try { Hashtable returnParam = (Hashtable)GA_MiniJSON.JsonDecode(www.text); ArrayList unity = ((ArrayList)returnParam["unity"]); for (int i = 0; i < unity.Count; i++) { Hashtable unityHash = (Hashtable)unity[i]; if (unityHash["version"].ToString() == GA_UpdateWindow.GetNewVersion()) { i = unity.Count; ArrayList changes = ((ArrayList)unityHash["changes"]); string newChanges = ""; for (int u = 0; u < changes.Count; u++) { if (string.IsNullOrEmpty(newChanges)) { newChanges = "- " + changes[u].ToString(); } else { newChanges += "\n- " + changes[u].ToString(); } } GA_UpdateWindow.SetChanges(newChanges); string skippedVersion = EditorPrefs.GetString("ga_skip_version", ""); if (!skippedVersion.Equals(GA_UpdateWindow.GetNewVersion())) { OpenUpdateWindow(); } } } } catch {} }