From 1fba135b4de3474d3bc1090723cfaa2a2d64df58 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 6 Mar 2021 21:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=B8=B8=E6=88=8Fcannon=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E9=BC=A0=E6=A0=87=E5=92=8C=E8=A7=A6=E5=B1=8F=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/mg_cannon.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/parts/scenes/mg_cannon.lua b/parts/scenes/mg_cannon.lua index 2a69ffe4..6b197be8 100644 --- a/parts/scenes/mg_cannon.lua +++ b/parts/scenes/mg_cannon.lua @@ -33,6 +33,16 @@ function scene.keyDown(key) SCN.back() end end +function scene.mouseDown(k) + if k==1 then + scene.keyDown("space") + elseif k==2 then + SCN.back() + end +end +function scene.touchDown() + scene.keyDown("space") +end function scene.update() timer=timer+1