slot0 = class("BundleLoaderPort") function slot0.Ctor(slot0, slot1) slot0.pool = slot1 or BundlePool.New() slot0.pool:Bind(slot0) slot0._returnRequest = {} end function slot0.GetPrefab(slot0, slot1, slot2, slot3, slot4) slot2 = slot2 or "" if slot4 and slot0._returnRequest[slot4] then slot0:ClearRequest(slot4) end if slot4 then slot0._returnRequest[slot4] = slot0.pool:GetPrefab(slot1, slot2, true, function (slot0) if uv0 then uv1._returnRequest[uv0] = nil end if uv2 then uv2(slot0) end end) end end function slot0.ReturnPrefab(slot0, slot1, slot2, slot3, slot4) slot0.pool:ReturnPrefab(slot1, slot2, slot3, slot4) end function slot0.GetSpine(slot0, slot1, slot2, slot3) if not slot1 or #slot1 < 0 then return end if slot3 and slot0._returnRequest[slot3] then slot0:ClearRequest(slot3) end if slot3 then slot0._returnRequest[slot3] = slot0.pool:GetSpineChar(slot1, true, function (slot0) if uv0 then uv1._returnRequest[uv0] = nil end if uv2 then uv2(slot0) end end) end end function slot0.ReturnSpine(slot0, slot1, slot2) slot0.pool:ReturnSpineChar(slot1, go(slot2)) end function slot0.GetPainting(slot0, slot1, slot2, slot3) if not slot1 or #slot1 < 0 then return end if slot3 and slot0._returnRequest[slot3] then slot0:ClearRequest(slot3) end if slot3 then slot0._returnRequest[slot3] = slot0.pool:GetPainting(slot1, true, function (slot0) if uv0 then uv1._returnRequest[uv0] = nil end if uv2 then uv2(slot0) end end) end end function slot0.ReturnPainting(slot0, slot1, slot2) slot0.pool:ReturnPainting(slot1, go(slot2)) end function slot0.GetSprite(slot0, slot1, slot2, slot3, slot4) slot3:GetComponent(typeof(Image)).enabled = false slot2 = slot2 or "" if slot0._returnRequest[tf(slot3)] then slot0:ClearRequest(slot6) end slot0._returnRequest[slot6] = slot0.pool:GetSprite(slot1, slot2, true, function (slot0) uv0._returnRequest[uv1] = nil uv2.enabled = true uv2.sprite = slot0 if uv3 then uv2:SetNativeSize() end end) end function slot0.DestroyPlural(slot0, slot1, slot2) slot0.pool:DestroyPlural(slot1, slot2) end function slot0.DestroyAtlas(slot0, slot1) slot0.pool:DestroyPack(slot1) end function slot0.GetOffSpriteRequest(slot0, slot1) slot0:ClearRequest(tf(slot1)) end slot1 = ResourceMgr.Inst function slot0.LoadPrefab(slot0, slot1, slot2, slot3, slot4) slot2 = slot2 or "" slot5 = false if slot3 then if slot0._returnRequest[slot3] then slot0:ClearRequest(slot3) end slot0._returnRequest[slot3] = function () uv0 = true end end uv0:getAssetAsync(slot1, slot2, UnityEngine.Events.UnityAction_UnityEngine_Object(function (slot0) if uv0 then return end uv1(Object.Instantiate(slot0)) end), true, false) end function slot0.LoadSprite(slot0, slot1, slot2, slot3, slot4) slot3:GetComponent(typeof(Image)).enabled = false slot2 = slot2 or "" if slot0._returnRequest[tf(slot3)] then slot0:ClearRequest(slot6) end slot7 = false slot0._returnRequest[slot6] = function () uv0 = true end uv0:getAssetAsync(slot1, slot2, typeof(Sprite), UnityEngine.Events.UnityAction_UnityEngine_Object(function (slot0) if uv0 then return end uv1._returnRequest[uv2] = nil uv3.enabled = true uv3.sprite = slot0 if uv4 then uv3:SetNativeSize() end end), true, false) end function slot0.ClearRequest(slot0, slot1) if slot0._returnRequest[slot1] then slot0._returnRequest[slot1]() slot0._returnRequest[slot1] = nil end end function slot0.ClearRequests(slot0) for slot4, slot5 in pairs(slot0._returnRequest) do slot5() slot0._returnRequest[slot4] = nil end end function slot0.Clear(slot0) slot0:ClearRequests() slot0.pool:UnBind() table.clear(slot0) end return slot0