From 0e216fb3d4a206a0475495636972c89a107fb5f5 Mon Sep 17 00:00:00 2001 From: "aube.lee" Date: Sat, 1 Feb 2025 23:40:44 +0900 Subject: [PATCH] =?UTF-8?q?Lobby=EC=94=AC=EC=97=90=EC=84=9C=20=EB=8B=A4?= =?UTF-8?q?=EB=A5=B8=20=EC=94=AC=EC=9C=BC=EB=A1=9C=20=EC=A0=84=ED=99=98=20?= =?UTF-8?q?=EB=90=A0=EB=95=8C=20=EC=BA=90=EB=A6=AD=ED=84=B0=20=ED=94=84?= =?UTF-8?q?=EB=A6=AC=ED=8C=B9=20=EB=A1=9C=EB=93=9C=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Gameton/Scripts/Scenes/LobbyScene.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs b/Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs index 6d2bbbdf..b21ed645 100644 --- a/Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs +++ b/Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs @@ -68,8 +68,17 @@ namespace TON public override IEnumerator OnEnd() { - yield return null; + // TON.Player 내부의 캐릭터 삭제 + GameObject playerObj = GameObject.Find("TON.Player"); + if (playerObj != null) + { + foreach (Transform child in playerObj.transform) + { + GameObject.Destroy(child.gameObject); + } + } + yield return null; } }