forked from noxious/client
Load tiles before showing map editor UI
This commit is contained in:
@ -216,10 +216,6 @@ onMounted(async () => {
|
||||
scene.input.on(Phaser.Input.Events.POINTER_DOWN, tilePicker)
|
||||
})
|
||||
|
||||
onBeforeMount(async () => {
|
||||
await loadAllTilesIntoScene(scene)
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
scene.input.off(Phaser.Input.Events.POINTER_MOVE, pencil)
|
||||
scene.input.off(Phaser.Input.Events.POINTER_MOVE, eraser)
|
||||
|
Reference in New Issue
Block a user