public void IRemoveListener(string eventName, object handler) { if (listenerDict.TryGetValue(eventName, out var listenerList)) { for (var i = 0; i < listenerList.Count; i++) { var handlerInfo = listenerList[i]; if (handlerInfo.key != handler) { continue; } if (!handlerInfo.value) { continue; } handlerInfo.value = false; } } }
public List <string> GetAllAssetPathList(string assetBundleName) { assetBundleName2AssetPathListDict.TryGetValue(assetBundleName, out var assetList); return(assetList ?? emptyList); }