lcb共用判断修改

This commit is contained in:
joylink_zhaoerwei 2024-05-13 17:05:19 +08:00
parent aa0b596119
commit c6f9881b64

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