Commit ccfae9d2 authored by 18손재민's avatar 18손재민

씬 전환 에러 고침

parent 87fcc532
......@@ -471,14 +471,13 @@ var gameScene = new Phaser.Class(
}
});
ScenesData.changeScene = function(scene)
ScenesData.changeScene = function(sceneKey)
{
game.scene.stop(ScenesData.currentScene);
game.scene.start(scene);
ScenesData.currentScene.scene.switch(sceneKey);
Input.input = [];
Input.converted = '';
Input.convInput = '';
Input.finalInput = '';
ScenesData.currentScene = scene;
ScenesData.currentScene = game.scene.getScene(sceneKey);
}
\ No newline at end of file
......@@ -68,7 +68,7 @@ UIObject.createButton = function(scene, buttonGameObject, overFrame, outFrame, d
}
})
.on('pointerup', () => {
buttonGameObject.setFrame(outFrame);
buttonGameObject.setFrame(overFrame);
})
.on('pointerout', () => {
buttonGameObject.setFrame(outFrame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment