Merge branch 'main' of https://gitea.joylink.club/joylink/godot-psd-training into main
This commit is contained in:
commit
4d1d575f0e
@ -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