public void OnLoaded() { int num = cbs.Count; while (num > 0) { AssetCallback acb = cbs[num - 1]; AssetCallback.Remove(acb.Id); cbs.RemoveAt(num - 1); DoAssetCallback(acb); num = cbs.Count; } }
public void UnRefBy(ulong cbId) { int ret = -1; for (int i = 0; i < cbs.Count; ++i) { if (cbs[i].Id == cbId) { ret = i; break; } } if (ret >= 0) { AssetCallback.Remove(cbs[ret].Id); cbs.RemoveAt(ret); UnRef(true); } }