diff --git a/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs b/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs index 53db900..f72a027 100644 --- a/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs +++ b/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs @@ -65,7 +65,6 @@ namespace Framework.Manager this.Name = name; } - [JsonConstructor] public BuildNode() { } @@ -354,7 +353,9 @@ namespace Framework.Manager { try { - var fileEntries = Directory.GetFiles(iconsPath, "*.png"); + var path = iconsPath.Replace(Application.dataPath, "").Replace('\\', '/'); + DebugUtil.LogError("路径:{0}", path); + var fileEntries = Directory.GetFiles(path, "*.png"); foreach (var filePath in fileEntries) { var fileName = Path.GetFileName(filePath);