Fixed wrong function name

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-06-04 03:50:03 +02:00
parent 41ab65bcfa
commit d380e23675
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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