From f0727c33610ad40e34e983edf0bafa4960c36111 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 7 Dec 2020 02:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A6=E5=B1=8F=E9=9C=80=E8=A6=81=E6=9D=BE?= =?UTF-8?q?=E5=BC=80=E6=89=8B=E6=8C=87=E6=89=8D=E5=BC=80=E5=A7=8B=E6=B8=B8?= =?UTF-8?q?=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/mg_cubefield.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/parts/scenes/mg_cubefield.lua b/parts/scenes/mg_cubefield.lua index c1788a75..1c2adb0c 100644 --- a/parts/scenes/mg_cubefield.lua +++ b/parts/scenes/mg_cubefield.lua @@ -71,8 +71,6 @@ function scene.touchDown(_,x) else moveDir=1 end - else - scene.keyDown("space") end end function scene.touchUp(_,x) @@ -94,15 +92,14 @@ function scene.touchUp(_,x) end end moveDir=0 + else + scene.keyDown("space") end end function scene.keyDown(key) if key=="escape"then SCN.back() - return - end - - if play then + elseif play then if key=="left"or key=="a"then moveDir=-1 elseif key=="right"or key=="d"then