fix: 清理AI遗留代码,修复场景配置

- 删除三套旧菜单系统 (MainMenu.cs, MainMenuUI.cs, ModeSelectionUI.cs)
- Ground 添加 BoxCollider 并设置 tag 为 Ground
- UIManager.OnReturnClicked 改为通过 PageController 返回首页
- PageController 增加 ReturnToHome 方法,管理 BtnFixationBack 可见性
- 清理废弃场景 Experiment.unity / ModeSelection.unity 及历史截图
This commit is contained in:
yangbear
2026-06-25 04:37:45 +08:00
parent 3b4438731d
commit 0a1fce450c
689 changed files with 75426 additions and 13752 deletions
+8 -2
View File
@@ -126,18 +126,18 @@ public class PageController : MonoBehaviour
#region
private void ShowPage(Page page)
private void ShowPage(Page page)
{
_currentPage = page;
if (_homePagePanel != null) _homePagePanel.SetActive(page == Page.Home);
if (_modeSelectPanel != null) _modeSelectPanel.SetActive(page == Page.ModeSelect);
if (_fixationPanel != null) _fixationPanel.SetActive(page == Page.Fixation);
if (_btnFixationBack != null) _btnFixationBack.gameObject.SetActive(page == Page.Fixation);
if (_uiManager != null)
_uiManager.enabled = (page == Page.Experiment);
}
#endregion
#region
@@ -206,5 +206,11 @@ public class PageController : MonoBehaviour
}
}
public void ReturnToHome()
{
ShowPage(Page.Home);
}
#endregion
}