From c38335f0bf6cdbde91bcd1bff4654586aabc724a Mon Sep 17 00:00:00 2001 From: "aube.lee" Date: Wed, 12 Feb 2025 20:55:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8A=A4=ED=82=AC=20=EC=9E=A5=EC=B0=A9?= =?UTF-8?q?=20=EC=8B=9C=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=20=EB=A1=9C=EC=A7=81=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gameton-06/Assets/Gameton/Scripts/Common/JSONLoader.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {