整理代码,表示键盘按键的字符串使用单引号
This commit is contained in:
@@ -13,7 +13,7 @@ function scene.sceneInit()
|
||||
end
|
||||
|
||||
function scene.keyDown(key)
|
||||
if key=="escape"then
|
||||
if key=='escape'then
|
||||
pauseGame()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user