lcb共用判断修改
This commit is contained in:
parent
aa0b596119
commit
c6f9881b64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user