resolves #2
This commit is contained in:
@@ -48,7 +48,11 @@ export default{
|
||||
gameEngine?.stop();
|
||||
},
|
||||
watch:{
|
||||
object(n){
|
||||
this.obj = n;
|
||||
},
|
||||
async obj(){
|
||||
if (!this.obj) return;
|
||||
gameEngine = new GameEngine();
|
||||
this.gameEngine = gameEngine;
|
||||
await gameEngine.init(this.$refs.target, {gizmo: true});
|
||||
|
||||
Reference in New Issue
Block a user