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

씬 전환 에러 고침

parent 87fcc532
...@@ -471,14 +471,13 @@ var gameScene = new Phaser.Class( ...@@ -471,14 +471,13 @@ var gameScene = new Phaser.Class(
} }
}); });
ScenesData.changeScene = function(scene) ScenesData.changeScene = function(sceneKey)
{ {
game.scene.stop(ScenesData.currentScene); ScenesData.currentScene.scene.switch(sceneKey);
game.scene.start(scene);
Input.input = []; Input.input = [];
Input.converted = ''; Input.converted = '';
Input.convInput = ''; Input.convInput = '';
Input.finalInput = ''; 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 ...@@ -68,7 +68,7 @@ UIObject.createButton = function(scene, buttonGameObject, overFrame, outFrame, d
} }
}) })
.on('pointerup', () => { .on('pointerup', () => {
buttonGameObject.setFrame(outFrame); buttonGameObject.setFrame(overFrame);
}) })
.on('pointerout', () => { .on('pointerout', () => {
buttonGameObject.setFrame(outFrame); 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