Exemplo n.º 1
0
        private static void onAssetHandle(QuickAssetFileInfo asset)
        {
            if (asset == null || string.IsNullOrEmpty(asset.AssetsRelativePath))
            {
                return;
            }
            List <string> importedKeys = new List <string>(ComplieRules);

            for (int j = 0; j < importedKeys.Count; j++)
            {
                if (asset.AssetsRelativePath.Contains(importedKeys[j]))
                {
                    PlayerPrefs.SetInt("ImportScripts", 1);
                    return;
                }
            }
        }
Exemplo n.º 2
0
 internal void InvokeEventForPaths(string[] paths, FileEvent e)
 {
     if (e == null)
     {
         return;
     }
     foreach (var p in paths)
     {
         if (IsValidPath(p))
         {
             QuickAssetFileInfo asset = new QuickAssetFileInfo(p);
             if (observedAssetTypes == UnityAssetType.None || (observedAssetTypes & asset.Type) == asset.Type)
             {
                 e.Invoke(asset);
             }
         }
     }
 }