Explorar o código

feat(draw): model save

gemercheung hai 1 ano
pai
achega
b08281c718
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/core/player/Player.js

+ 7 - 0
src/core/player/Player.js

@@ -51,6 +51,13 @@ export default class Player {
     this.mode = mode;
   }
 
+  removeMarker() {
+    if (this.marker) {
+      this.scene.scene.remove(this.marker);
+      this.marker = null;
+    }
+  }
+
   init = () => {
     // //floorplanControls
     // this.floorplanControls = new FloorplanControls(