gemercheung преди 1 година
родител
ревизия
b08281c718
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  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(