public void EnterAR_HX(SenceInteractiveInfo s) { GlobalDebug.Addline("EnterAR_HX"); hxScene = s; for (int i = 0; i < hxSceneHuXingTypeFinal.Length; i++) { if (hxSceneHuXingTypeFinal[i].hxName == s.huXingType.hxName) { currentSelectHuXingType = hxSceneHuXingTypeFinal[i]; } } triggerEnterHX.AlphaPlayBackward(); triggerEnterFangJian.AlphaPlayBackward(); // triggerShare.AlphaPlayBackward(); triggerVR.AlphaPlayBackward(); triggerHuXingThumbnail.AlphaPlayBackward(); huXingInfoLabel.DisplayHuXingInfoLabel(currentSelectHuXingType.GetHuXingTypeInfo()); pmtImagePlayer.netTexture2DGroup = currentSelectHuXingType.netTexture2DGroup; DisplayHuXingFloorScrollMenu(); }
/// <summary> /// 竖屏进入户型 /// </summary> /// <param name="inName"></param> public void OnlyEnterHXNK(string inName) { GlobalDebug.Addline("Portrait EnterHXNK"); foreach (SenceInteractiveInfo s in sceneInteractiveManger.senceInteractiveInfoGroup) { if (inName == s.huXingType.hxName) { if (s.huXingType.hxMeshRoot != null) { appBridge.Unity2App("unityOpenRoomType", currentSelectHuXingType.huXingID); Debug.Log("unityOpenRoomType:" + currentSelectHuXingType.huXingID); GlobalDebug.Addline("unityOpenRoomType:" + currentSelectHuXingType.huXingID); hxScene = s; for (int i = 0; i < hxSceneHuXingTypeFinal.Length; i++) { if (hxSceneHuXingTypeFinal[i].hxName == s.huXingType.hxName) { currentSelectHuXingType = hxSceneHuXingTypeFinal[i]; } } if (hxScene.meshRoot != null) { hxScene.meshRoot.transform.position = new Vector3(0, 500, 0); hxScene.cameraUniversalCenter.transform.position = new Vector3(0, 500, 0); } sceneInteractiveManger.ChangeInteractiveScene(hxScene, true); // triggerVR.AlphaPlayBackward(); // triggerEnterFangJian.AlphaPlayBackward(); // triggerFCZ.transform.localPosition = new Vector3(0, 100, 0); triggerFCZ.AlphaPlayForward(); // triggerEnterFangJian.transform.localPosition = new Vector3(-500, 0, 0); triggerEnterHX.AlphaPlayBackward(); triggerHuXingThumbnail.AlphaPlayBackward(); xfGUI.triggerOutDoorThumbnail.AlphaPlayBackward(); huXingInfoLabel.DisplayHuXingInfoLabel(currentSelectHuXingType.GetHuXingTypeInfo()); pmtImagePlayer.netTexture2DGroup = currentSelectHuXingType.netTexture2DGroup; DisplayHuXingFloorScrollMenu(); huXingCameraBG.transform.parent = hxScene.cameraUniversalCenter.cameras[0].transform; huXingCameraBG.transform.localPosition = new Vector3(0, 0, 90); huXingCameraBG.transform.rotation = new Quaternion(); huXingCameraBG.transform.localScale = new Vector3(250, 140, 1); appBridge.Unity2App("unityOpenRoomTypeDone"); Debug.Log("unityOpenRoomTypeDone"); GlobalDebug.Addline("unityOpenRoomTypeDone"); } } } }