JSON Loader 코드 일부 수정

This commit is contained in:
aube.lee
2025-01-31 19:17:18 +09:00
parent d73634fbab
commit 13f3b3b590

View File

@@ -26,8 +26,10 @@ namespace TON
} }
/// <summary> Application.persistentDataPath에서 JSON 파일을 읽어 특정 데이터 타입으로 변환하는 함수 </summary> /// <summary> Application.persistentDataPath에서 JSON 파일을 읽어 특정 데이터 타입으로 변환하는 함수 </summary>
public static T LoadFromFile<T>(string filePath) public static T LoadFromFile<T>(string fileName)
{ {
string filePath = Application.persistentDataPath + "/" + fileName;
if (File.Exists(filePath)) if (File.Exists(filePath))
{ {
string json = File.ReadAllText(filePath); string json = File.ReadAllText(filePath);