This commit is contained in:
joylink_fanyuhong 2024-05-13 17:23:47 +08:00
commit 4d1d575f0e

View File

@ -86,11 +86,12 @@ var currenNeedClickNode = null
signal currentClickCheckSignal(isCorrect:bool) signal currentClickCheckSignal(isCorrect:bool)
var allLCBKeys = ['LCB_Key1','LCB_Key2','LCB_Key3','LCB_Key4']
func checkCurrentClick() -> bool: func checkCurrentClick() -> bool:
if trainingMode == Training_Mode.Exam: if trainingMode == Training_Mode.Exam:
return true return true
else : 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 return true
else : else :
return false return false