swith to the end
This commit is contained in:
@@ -24,6 +24,9 @@ export default {
|
||||
mode: 'GamePlay'
|
||||
});
|
||||
manager = await new GameManager(engine, this.id);
|
||||
manager.addEventListener('the-end', _=>{
|
||||
this.$router.push('/');
|
||||
})
|
||||
window.addEventListener('resize', this.resize);
|
||||
manager.loadScene(manager.scenarioData.scenes[0].data.id)
|
||||
},
|
||||
@@ -39,7 +42,6 @@ export default {
|
||||
},
|
||||
|
||||
methods:{
|
||||
|
||||
targetClick(e){
|
||||
engine.onClick(e, this.$refs.target);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user