From c6f9881b646ca2c5db9bfae23a098d2f59bd9723 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Mon, 13 May 2024 17:05:19 +0800 Subject: [PATCH] =?UTF-8?q?lcb=E5=85=B1=E7=94=A8=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sceen/total.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sceen/total.gd b/sceen/total.gd index fa39318..7ae0f0f 100644 --- a/sceen/total.gd +++ b/sceen/total.gd @@ -86,11 +86,12 @@ var currenNeedClickNode = null signal currentClickCheckSignal(isCorrect:bool) +var allLCBKeys = ['LCB_Key1','LCB_Key2','LCB_Key3','LCB_Key4'] func checkCurrentClick() -> bool: if trainingMode == Training_Mode.Exam: return true else : - if currentClickNode == currenNeedClickNode or currentClickNode in ['LCB_Key1','LCB_Key2','LCB_Key3','LCB_Key4']: + if currentClickNode == currenNeedClickNode or (currentClickNode in allLCBKeys and currenNeedClickNode in allLCBKeys): return true else : return false