From f6ef1d72411d0c908a382115710f122d327a87f4 Mon Sep 17 00:00:00 2001 From: "xiaohui.wang" Date: Tue, 12 Jul 2022 16:22:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E8=80=85debugbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/DebugGame.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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