private IEnumerator WaitForInit() { MEHoloEntrance entrance = MEHoloEntrance.Instance; while (!entrance.HasInit) { yield return(null); } solarSystem.Init(); // 主菜单 mainMenu = menuManager.GetMenu("MainMenu"); mainMenu.RegistButtonClick("ChangeAnchor", SpatialFit); mainMenu.RegistButtonClick("UploadAnchor", UploadAnchor); mainMenu.RegistButtonClick("DownloadAnchor", DownloadAnchor); // 语音设置 speechManager.AddKeywords("OpenMenu", OpenMenu); speechManager.StartRecognize(); /////////////// 启动流程 ///////////////////// cursorController.isBusy = true; solarSystem.TurnOn(); cursorController.TurnOn(); isBusy = false; }
public void InitSystemMenu() { if (systemMenuData == null) { return; } BlockMenuData data = JsonUtil.Deserialize <BlockMenuData>(systemMenuData.text); uiManager.menuManager.CreateMenu(data); systemMenu = uiManager.menuManager.GetMenu(data.name); systemMenu.RegistButtonClick("SetAnchor", StartSetAnchor); uiManager.menuManager.cbMenuHide += OnMenuHide; // 开启语音菜单 if (speechManager.HasTurnOn()) { speechManager.TurnOff(); } speechManager.AddKeywords("Open Menu", OpenSystemMenu); speechManager.TurnOn(); // 开启屏幕UI }