chore: tidy
This commit is contained in:
parent
fcf09044dc
commit
40a02ea088
|
@ -345,6 +345,9 @@ export class App extends decorate(class {}) {
|
|||
}
|
||||
this.room = room;
|
||||
// View.
|
||||
if (this.roomView) {
|
||||
this.roomView.destroy();
|
||||
}
|
||||
this.stage.removeChild(this.roomView);
|
||||
this.roomView = new RoomView(this.room, this.stage.renderer);
|
||||
this.stage.addChild(this.roomView);
|
||||
|
|
Loading…
Reference in New Issue
Block a user