From d380e236754288e7540e533c06dcc353d1daab7d Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Fri, 4 Jun 2021 03:50:03 +0200 Subject: [PATCH] Fixed wrong function name Signed-off-by: Robear Selwans --- res/project/res/scripts/MainScene/camera.lua | 2 +- res/project/res/scripts/SideScene/camera.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/project/res/scripts/MainScene/camera.lua b/res/project/res/scripts/MainScene/camera.lua index 9665d3a..3e958b9 100644 --- a/res/project/res/scripts/MainScene/camera.lua +++ b/res/project/res/scripts/MainScene/camera.lua @@ -4,7 +4,7 @@ this.on_init = function() end this.on_fixedupdate = function() - if Input.getKeyJustPressed(Input.KeyCode.Enter) then + if Input.getKeyDown(Input.KeyCode.Enter) then gotoScene('SideScene') end diff --git a/res/project/res/scripts/SideScene/camera.lua b/res/project/res/scripts/SideScene/camera.lua index 1721557..ac6e347 100644 --- a/res/project/res/scripts/SideScene/camera.lua +++ b/res/project/res/scripts/SideScene/camera.lua @@ -4,7 +4,7 @@ this.on_init = function() end this.on_fixedupdate = function() - if Input.getKeyJustPressed(Input.KeyCode.Enter) then + if Input.getKeyDown(Input.KeyCode.Enter) then gotoScene('MainScene') end