diff --git a/Gameton-06/Assets/Gameton/Scripts/Common/JSONLoader.cs b/Gameton-06/Assets/Gameton/Scripts/Common/JSONLoader.cs index 271feb13..d7367d19 100644 --- a/Gameton-06/Assets/Gameton/Scripts/Common/JSONLoader.cs +++ b/Gameton-06/Assets/Gameton/Scripts/Common/JSONLoader.cs @@ -103,14 +103,13 @@ namespace TON string persistentPath = GetPersistentPath(fileName); -#if UNITY_ANDROID // ๐Ÿ“Œ Step 1: persistentDataPath์— ํŒŒ์ผ์ด ์žˆ๋Š”์ง€ ์ฒดํฌ // Android์—์„œ๋Š” ํŒŒ์ผ์ด ์ด๋ฏธ ์กด์žฌํ•˜๋ฉด ๋ฎ์–ด์“ฐ์ง€ ์•Š๋„๋ก ํ•จ if (File.Exists(persistentPath)) { Debug.Log($"โš  {fileName}.json ํŒŒ์ผ์ด ์ด๋ฏธ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. ๋ฎ์–ด์“ฐ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ({persistentPath})"); + return; } -#endif // ๐Ÿ“Œ Step 2: Resources์—์„œ JSON ๋ถˆ๋Ÿฌ์˜ค๊ธฐ string path = DATA_PATH + fileName; // Resources ํด๋” ๋‚ด ๊ฒฝ๋กœ TextAsset jsonFile = Resources.Load(path); @@ -118,7 +117,7 @@ namespace TON if (jsonFile != null) { File.WriteAllText(persistentPath, jsonFile.text); - Debug.Log($"โœ… JSON ์ €์žฅ ์™„๋ฃŒ (์ฒ˜์Œ ์ €์žฅ๋จ): {persistentPath}"); + Debug.Log($"โœ… JSON ์ €์žฅ ์™„๋ฃŒ: {persistentPath}"); } else {