示例#1
0
 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;
         }
     }
 }
示例#2
0
 public List <string> GetAllAssetPathList(string assetBundleName)
 {
     assetBundleName2AssetPathListDict.TryGetValue(assetBundleName, out var assetList);
     return(assetList ?? emptyList);
 }