update logic code

优化了创建文件的方式。
This commit is contained in:
hevinci
2023-06-09 18:12:03 +08:00
parent f6e94c9514
commit 895dde1cc8
8 changed files with 15 additions and 37 deletions

View File

@@ -86,9 +86,7 @@ namespace YooAsset
if (IsValidWithWarning == false)
return null;
string filePath = Provider.RawFilePath;
if (File.Exists(filePath) == false)
return null;
return File.ReadAllText(filePath, Encoding.UTF8);
return FileUtility.ReadAllText(filePath);
}
/// <summary>