Commit fb639686 authored by wildfirecode13's avatar wildfirecode13

1

parent eafd3468
This diff is collapsed.
...@@ -207,6 +207,14 @@ ...@@ -207,6 +207,14 @@
w = W / MAX_COL; w = W / MAX_COL;
h = H / MAX_ROW; h = H / MAX_ROW;
console.log('onSteup', props); console.log('onSteup', props);
if (this.picturesWrapper) {
try {
this.removeChild(this.picturesWrapper);
}
catch (err) {
console.error(err);
}
}
var parent = new engine.Sprite(); var parent = new engine.Sprite();
this.picturesWrapper = parent; this.picturesWrapper = parent;
this.addChild(parent); this.addChild(parent);
......
This diff is collapsed.
...@@ -216,6 +216,13 @@ export default class GameView extends engine.Container { ...@@ -216,6 +216,13 @@ export default class GameView extends engine.Container {
console.log('onSteup', props); console.log('onSteup', props);
if(this.picturesWrapper) {
try{
this.removeChild( this.picturesWrapper)
}catch(err){
console.error(err)
}
}
const parent = new engine.Sprite(); const parent = new engine.Sprite();
this.picturesWrapper = parent; this.picturesWrapper = parent;
this.addChild(parent); this.addChild(parent);
......
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