public void ExitHuXingFloor() { huXingFloorScrollMenu.SetNonStandFloorBtnVisblity(true); currentSelectSenceInteractiveInfo.huXingType.hxMeshRoot.position = currentSelectSenceInteractiveInfo.huXingType.hxNKWorldPos; currentSelectSenceInteractiveInfo.huXingType.hxMeshRoot.eulerAngles = new Vector3(0, currentSelectSenceInteractiveInfo.huXingType.rotOffset, 0); //点击默认第一个房间号 //if (hxInstanceScrollMenu != null) //清空之前房号的按钮状态 hxInstanceScrollMenu.CloseScrollMenu(); currentSelectHuXingType.ExitHuXingFloor(currentSelectSenceInteractiveInfo.cameraUniversalCenter); xfCanveGroupFade.AlphaPlayBackward(); CloseChooseBuildingMenu(); CloseChooseUnitMenu(); hxfbMat.SetColor("_Color", new Color(0, 0, 0, 0.8f)); senceInteractiveInfoGroup[0].cameraUniversalCenter.cameras[0].GetComponent <Camera>().targetTexture = thumbnail; senceInteractiveInfoGroup[0].cameraUniversalCenter.cameras[0].EnableCamera(); senceInteractiveInfoGroup[0].cameraUniversalCenter.cameras[0].SetCameraPositionAndXYZCount(hxfbCameraArgs, 0); senceInteractiveInfoGroup[0].cameraUniversalCenter.cameras[0].GetComponent <Camera>().Render(); senceInteractiveInfoGroup[0].cameraUniversalCenter.cameras[0].DisableCamera(); senceInteractiveInfoGroup[0].cameraUniversalCenter.cameras[0].GetComponent <Camera>().targetTexture = null; }
public void CloseXFMenu() { selectMat.SetColor("_Color", new Color(0, 0, 0, 0.0f)); //点击默认第一个房间号 //if (hxInstanceScrollMenu != null) //清空之前房号的按钮状态 hxInstanceScrollMenu.CloseScrollMenu(); xfCanveGroupFade.AlphaPlayBackward(); CloseChooseBuildingMenu(); CloseChooseUnitMenu(); EndCtrlXFThumbnail(); }