private void BuildDeferenceInfo() { foreach (KeyValuePair <string, string[]> pair in _dependenciesDic) { AssetFile file = FindAssetFile(pair.Key); if (file == null) { Debug.LogError("error AssetFile path:" + pair.Key); } foreach (string dependencePath in pair.Value) { if (string.IsNullOrEmpty(dependencePath)) { continue; } AssetFile dependenceFile = FindAssetFile(dependencePath); if (dependenceFile == null) { Debug.LogError("error AssetFile path:" + dependencePath); } file.AddDefFile(dependenceFile); dependenceFile.AddReDefFile(file); } } }