コード例 #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
ファイル: AssetPathMap.cs プロジェクト: uiopsczc/Test
 public List <string> GetAllAssetPathList(string assetBundleName)
 {
     assetBundleName2AssetPathListDict.TryGetValue(assetBundleName, out var assetList);
     return(assetList ?? emptyList);
 }