private bool OnDownload(DownloadManager.Info downloadInfo) { Debug.Log("OnDownload - Started"); bool ret = false; if (downloadInfo.state == DownloadManager.Info.State.Downloaded) { ret = true; if (m_curIndexHash != null) { string onlineIndexHash = downloadInfo.text.Substring(0, 32); if (RTUtils.IsHash(onlineIndexHash)) { if (m_curIndexHash.Equals(onlineIndexHash)) { m_state = State.UpToDate; } else { m_state = State.Outdated; } } else { Debug.LogWarning(string.Format("OnDownload - Version file is corrupted. Hash = \"{0}\"", onlineIndexHash)); ret = false; } } } else { m_state = State.Unreachable; } Debug.Log(string.Format("OnDownload - Resolved to state \"{0}\"", state)); Debug.Log("OnDownload - Finished"); return(ret); }