From a6842851a844e63a8766d63c5410a8e2f27a7d45 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 20 八月 2024 11:56:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/screen/components/screen-map-three/experience/world/world.js | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/screen/components/screen-map-three/experience/world/world.js b/src/views/screen/components/screen-map-three/experience/world/world.js index 9ec2b12..a872335 100644 --- a/src/views/screen/components/screen-map-three/experience/world/world.js +++ b/src/views/screen/components/screen-map-three/experience/world/world.js @@ -1,6 +1,5 @@ import EventEmitter from '../utils/eventEmitter'; import Enviroment from './enviroment'; - import Map from './map'; export default class World extends EventEmitter { @@ -13,6 +12,10 @@ } update() { - + this.enviroment.update(); + } + destroy() { + this.enviroment.destroy(); + this.map.destroy(); } } \ No newline at end of file -- Gitblit v1.8.0