diff --git a/js/main.js b/js/main.js index 963b6ad..87bfa17 100644 --- a/js/main.js +++ b/js/main.js @@ -115,12 +115,22 @@ class App { this.sceneManager = null; } + // 重置2D地图初始化标志 + this.is2DInitialized = false; + // 重置UI状态 this.canvasContainer.style.display = 'block'; this.speedLines.style.display = 'block'; this.cloudFog.style.display = 'none'; // 云雾初始隐藏,转场时才显示 this.cloudFog.style.opacity = '0'; this.mapInterface.style.display = 'none'; + this.mapInterface.style.opacity = '0'; + + // 重置UI层和提示文字的状态(关键修复) + this.uiLayer.style.opacity = '0'; + this.uiLayer.style.display = 'flex'; + this.hint.style.opacity = '0'; + this.hint.style.display = 'block'; // 创建场景管理器 this.sceneManager = new SceneManager(