diff --git a/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/DebugGame.cs b/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/DebugGame.cs index ca90de92..7026c400 100644 --- a/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/DebugGame.cs +++ b/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/DebugGame.cs @@ -23,9 +23,9 @@ namespace MyGame.Scenes.MiniGame.Scripts #else private void Awake() { - Destroy(resetScoreButton); - Destroy(resetPlayCountButton); - Destroy(allHiScoreButton); + Destroy(resetScoreButton.gameObject); + Destroy(resetPlayCountButton.gameObject); + Destroy(allHiScoreButton.gameObject); } #endif