public void FinishDownLoading() { state = ResItmeState.FINISH; if (onfinishs != null) { IEnumerator e = onfinishs.GetEnumerator(); while (e.MoveNext()) { if (e.Current != null) { foreach (var item in onfinishs[e.Current]) { item.Invoke(); } } } } }
public void StartDownLoading() { state = ResItmeState.DOWNLOADING; }