示例#1
0
    public void EnterPoint360()
    {
        if (!hasEnterPoint360)
        {
            hasEnterPoint360 = true;
            backAction.RemoveAllBackEvent();

            exitLandscape.AlphaPlayBackward();
            exitPoint360.AlphaPlayForward();
            backActionBtn.AlphaPlayBackward();
        }
    }
示例#2
0
    public void ChooseHuXingType(string hxName)
    {
        //显示户型信息,获取到当前选择的户型

        string info = SelectHuXingType(hxName);

        huXingInfoLabel.DisplayHuXingInfoLabel(info);

        //判断是否有Mesh
        if (currentSelectHuXingType.hxMeshRoot != null)
        {
            triggerEnterHX.AlphaPlayForward();
            triggerHuXingThumbnail.AlphaPlayForward();
            LoadHuXingRenderThumbnail(thumbnail, hxName);
        }
        else
        {
            triggerHuXingThumbnail.AlphaPlayBackward();
            triggerEnterHX.AlphaPlayBackward();
        }

/*
 *      //判断是否有H5分享
 *      if (currentSelectHuXingType.hasShare)
 *      {
 *          triggerShare.AlphaPlayForward();
 *      }
 *      else
 *      {
 *          triggerShare.AlphaPlayBackward();
 *      }
 */
        //显示户型分布块
        if (senceInteractiveInfoGroup[0].ProcessHXFBAction(hxName))
        {
            hxfbMat.SetColor("_Color", new Color(0, 0, 0, 0.8f));
            hxfbCameraArgs = senceInteractiveInfoGroup[0].cameraUniversalCenter.currentCamera.GetCameraStateJson();
        }
        else
        {
            string log = hxName + "的户型分布块未找到!";
            GlobalDebug.Addline(log);
            Debug.Log(log);
            Debug.LogWarning(log);
            Debug.LogError(log);

            GlobalDebug.Addline(log);
        }
    }
示例#3
0
    public void HiddenHuXingInfoLabel()
    {
        canveGroupFade.AlphaPlayBackward();

        DOTween.Kill(baseGroup[0]);
        DOTween.Kill(baseGroup[1]);
        DOTween.Kill(baseGroup[2]);
        DOTween.Kill(baseGroup[3]);
        DOTween.Kill(baseGroup[4]);
        DOTween.Kill(baseGroup[5]);
        DOTween.Kill(baseGroup[6]);

        baseGroup[6].GetComponent <CanvasGroup>().DOFade(0, 0.0f);
        baseGroup[5].GetComponent <CanvasGroup>().DOFade(0, 0.1f);
        baseGroup[4].GetComponent <CanvasGroup>().DOFade(0, 0.1f);
        baseGroup[3].GetComponent <CanvasGroup>().DOFade(0, 0.2f);
        baseGroup[2].GetComponent <CanvasGroup>().DOFade(0, 0.3f);
        baseGroup[1].GetComponent <CanvasGroup>().DOFade(0, 0.4f);
        baseGroup[0].GetComponent <CanvasGroup>().DOFade(0, 0.5f);

        baseGroup[6].transform.DOLocalMoveY(0, 0.0f);
        baseGroup[5].transform.DOLocalMoveY(0, 0.1f);
        baseGroup[4].transform.DOLocalMoveY(0, 0.1f);
        baseGroup[3].transform.DOLocalMoveY(0, 0.2f);
        baseGroup[2].transform.DOLocalMoveY(0, 0.3f);
        baseGroup[1].transform.DOLocalMoveY(0, 0.4f);
        baseGroup[0].transform.DOLocalMoveY(0, 0.5f);
    }
示例#4
0
 public void OpenImagePlayer()
 {
     if (netTexture2DGroup.Count > 0)
     {
         ToImage(0);
         if (netTexture2DGroup.Count > 1)
         {
             nextBtn.AlphaPlayForward();
             preBtn.AlphaPlayBackward();
         }
     }
     else
     {
         scaleImage.FullScreen();
     }
 }
示例#5
0
    public void CloseVRGlass()
    {
        vrViewCanveGroupFade.AlphaPlayBackward();

        Input.gyro.enabled           = false;
        this.transform.parent        = globalManager;
        this.transform.localPosition = Vector3.zero;
        this.transform.localRotation = Quaternion.identity;
        moveUI.AlphaPlayBackward();
        zhunxUI.AlphaPlayBackward();

        leftEyeCamera.enabled  = false;
        rightEyeCamera.enabled = false;
//      cameraUniversal.GetComponent<Camera>().enabled = true;

        cameraUniversal.GetComponent <Camera>().cullingMask      = leftEyeCamera.cullingMask;
        cameraUniversal.GetComponent <Camera> ().clearFlags      = orginCameraClearFlags;
        cameraUniversal.GetComponent <Camera> ().backgroundColor = orginBackgroundColor;

        cameraUniversal.ResetCameraStateToInitial();
//      cameraUniversal.vrMoveForward = false;
        cameraUniversal = null;
        defaultGUI.AlphaPlayForward();
        appBridge.Unity2App("unityVRState", "0");
    }
示例#6
0
    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;
    }
示例#7
0
    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();
    }
示例#8
0
    public void EnterAR_HX(SenceInteractiveInfo senceInteractiveInfo)
    {
        GlobalDebug.Addline("EnterAR_HX");

        triggerFCZ.AlphaPlayForward();
        triggerPMT.AlphaPlayBackward();
        triggerEnterHX.AlphaPlayBackward();
        triggerEnterFangJian.AlphaPlayBackward();
        appBridge.defaultGUI.triggerEnterFangJianPortrait.AlphaPlayBackward();
        triggerShare.AlphaPlayForward();
        triggerVR.AlphaPlayBackward();
        triggerHuXingThumbnail.AlphaPlayBackward();

        huXingInfoLabel.DisplayHuXingInfoLabel(senceInteractiveInfo.huXingType.GetHuXingTypeInfo());
        hxScene = senceInteractiveInfo;
        currentSelectHuXingType = senceInteractiveInfo.huXingType;
        DisplayHuXingFloorScrollMenu();
    }
示例#9
0
    /// <summary>
    /// 退出竖屏户型鸟瞰
    /// </summary>
    public void ExitHXNK()
    {
        triggerEnterHX.AlphaPlayForward();
//     triggerEnterFangJian.transform.localPosition = new Vector3(0, 0, 0);
//     triggerFCZ.transform.localPosition = Vector3.zero;
        triggerFCZ.AlphaPlayBackward();

        huXingCameraBG.transform.parent        = this.transform;
        huXingCameraBG.transform.localPosition = new Vector3(0, 0, 90);
        huXingCameraBG.transform.rotation      = new Quaternion();
        huXingCameraBG.transform.localScale    = new Vector3(0, 0, 1);

        if (hxScene != null && hxScene.huXingType.hxMeshRoot != null)
        {
            hxScene.huXingType.hxMeshRoot.gameObject.SetActive(false);
        }

        if (hxScene.meshRoot != null)
        {
            hxScene.meshRoot.transform.position = new Vector3(0, 0, 0);
            hxScene.cameraUniversalCenter.transform.position = new Vector3(0, 0, 0);
        }


        HiddenHuXingFloorScrollMenu();

        if (sceneInteractiveManger.mainSenceInteractiveInfo != null)
        {
            sceneInteractiveManger.ChangeInteractiveScene(sceneInteractiveManger.mainSenceInteractiveInfo, true);
        }
        else
        {
            sceneInteractiveManger.globalCameraCenter.ChangeCamera2(sceneInteractiveManger.globalCameraCenter.cameras[0], 0);
            sceneInteractiveManger.currentActiveSenceInteractiveInfo = null;
        }


        huXingInfoLabel.HiddenHuXingInfoLabel();


        appBridge.Unity2App("unityBackRoomTypeDone");
        Debug.Log("unityBackRoomTypeDone");
        GlobalDebug.Addline("unityBackRoomTypeDone");
    }
示例#10
0
    public void NextPage()
    {
        lastPageNo = currentPageNo;
        netTexture2DGroup[lastPageNo].scaleImage = null;

        if (currentPageNo < netTexture2DGroup.Count - 1)
        {
            currentPageNo++;
            scaleImage.SetImage(netTexture2DGroup[currentPageNo].LoadTexture2D(scaleImage));
        }

        if (currentPageNo == netTexture2DGroup.Count - 1)
        {
            nextBtn.AlphaPlayBackward();
        }


        preBtn.AlphaPlayForward();
    }
示例#11
0
    public void FinishOnLineTalk(string invokeFrom)
    {
        string logStr = "结束讲盘 InvokeFrom:" + invokeFrom;

        Debug.Log(logStr);
        GlobalDebug.Addline(logStr);

        touchBlock.AlphaPlayBackward();
        exitOnlineTalk.AlphaPlayBackward();
        GetComponent <CanveGroupFade>().AlphaPlayBackward();
        StartCoroutine(FinishOnLineTalk_IE());
    }
示例#12
0
    public void SucessConnect()
    {
        if (remoteManger.runAtType == RemoteManger.RunAtType.Slave)
        {
            touchBlock.AlphaPlayForward();
        }

        SetHelpInfoString("成功连线!开始讲盘");
        infoLabelGroup[4].text = "已连接";
        infoLabelGroup[5].text = "已连接";

        bg_Group.AlphaPlayBackward();
    }
示例#13
0
    public void CloseXFMenu()
    {
        selectMat.SetColor("_Color", new Color(0, 0, 0, 0.0f));
        //点击默认第一个房间号
        //if (hxInstanceScrollMenu != null)
        //清空之前房号的按钮状态
        hxInstanceScrollMenu.CloseScrollMenu();

        xfCanveGroupFade.AlphaPlayBackward();
        CloseChooseBuildingMenu();
        CloseChooseUnitMenu();
        EndCtrlXFThumbnail();
    }
    public void CloseTotalInfo()
    {
        canveGroupFade.AlphaPlayBackward();

        /*
         * for (int i=0; i < allCirclePoint.Count; i++)
         * {
         *  Destroy(allCirclePoint[i].gameObject);
         * }
         * allCirclePoint.Clear();
         */
//        Destroy(allCirclePoint);
    }
示例#15
0
    public void ExitHuXing()
    {
        CameraUniversalCenter.isInMirrorHX = false;

        huXingCameraBG.transform.parent        = this.transform;
        huXingCameraBG.transform.localPosition = new Vector3(0, 0, 90);
        huXingCameraBG.transform.rotation      = new Quaternion();
        huXingCameraBG.transform.localScale    = new Vector3(0, 0, 1);

        if (hxScene.sceneType != SenceInteractiveInfo.SceneType.大场景)
        {
            hxScene.huXingType.DisplayAllFloorMesh();
        }

        sceneInteractiveManger.RenderSenceThumbnail(sceneInteractiveManger.thumbnailHX, hxScene, hxScene.cameraUniversalCenter.cameras[0]);
        hxScene.huXingType.hxMeshRoot.gameObject.SetActive(false);
        hxfbScene.meshRoot.gameObject.SetActive(true);

        sceneInteractiveManger.ChangeInteractiveScene(hxfbScene, true);

        //判断是否有Mesh
        if (hxScene.huXingType.hxMeshRoot != null)
        {
            triggerHuXingThumbnail.AlphaPlayForward();
            xfGUI.triggerOutDoorThumbnail.AlphaPlayBackward();
        }
        else
        {
            triggerHuXingThumbnail.AlphaPlayBackward();
        }

        triggerShare.AlphaPlayBackward();
        triggerFCZ.AlphaPlayBackward();
        triggerMusicBtn.AlphaPlayForward();

        HiddenHuXingFloorScrollMenu();

        DisplayHXFBBox(currentSelectHuXingType.hxName);

/*
 *      if (hxScene.huXingType.hxAudioClip != null)
 *      {
 *          triggerCartoonAni.AlphaPlayBackward();
 *          cartoonPlayer.CloseCaratoonPeople();
 *      }
 */

        appBridge.Unity2App("unityBackRoomTypeDone");
        Debug.Log("unityBackRoomTypeDone");
        GlobalDebug.Addline("unityBackRoomTypeDone");
    }
示例#16
0
    IEnumerator FinishGotoVediaoTalk_IE()
    {
        yield return(new WaitForSeconds(0.3f));

        remoteManger.DisConnect();
        yield return(new WaitForSeconds(0.2f));

        avatar.AlphaPlayBackward();
        vedio_Trriger.AlphaPlayBackward();

        appBridge.Unity2App("unityCloseRemote", "6");
        string logStr = "unityCloseRemote 6";

        Debug.Log(logStr);
        GlobalDebug.Addline(logStr);
    }
示例#17
0
    public void ExitHuXing()
    {
        if (currentSelectSenceInteractiveInfo != null && senceInteractiveInfoGroup[0] != null && currentSelectSenceInteractiveInfo != senceInteractiveInfoGroup[0])
        {
            huXingCameraBG.transform.parent        = this.transform;
            huXingCameraBG.transform.localPosition = new Vector3(0, 0, 90);
            huXingCameraBG.transform.rotation      = new Quaternion();
            huXingCameraBG.transform.localScale    = new Vector3(0, 0, 1);

            if (currentSelectSenceInteractiveInfo.sceneType != SenceInteractiveInfo.SceneType.大场景)
            {
                currentSelectSenceInteractiveInfo.huXingType.DisplayAllFloorMesh();
            }

            currentSelectSenceInteractiveInfo.cameraUniversalCenter.currentCamera.GetComponent <Camera>().targetTexture = thumbnail;
            currentSelectSenceInteractiveInfo.cameraUniversalCenter.currentCamera.GetComponent <Camera>().Render();
            currentSelectSenceInteractiveInfo.cameraUniversalCenter.currentCamera.GetComponent <Camera>().targetTexture = null;

            senceInteractiveInfoGroup[0].cameraUniversalCenter.ChangeCamera(senceInteractiveInfoGroup[0].cameraUniversalCenter.cameras[0], 1);

            currentSelectSenceInteractiveInfo.huXingType.hxMeshRoot.gameObject.SetActive(false);

            //判断是否有Mesh
            if (currentSelectSenceInteractiveInfo.huXingType.hxMeshRoot != null)
            {
                triggerHuXingThumbnail.AlphaPlayForward();
                triggerOutDoorThumbnail.AlphaPlayBackward();
            }
            else
            {
                triggerHuXingThumbnail.AlphaPlayBackward();
            }

            foreach (Canvas c in currentSelectSenceInteractiveInfo.GetComponentsInChildren <Canvas>(true))
            {
                c.gameObject.SetActive(false);
            }

            foreach (Canvas c in senceInteractiveInfoGroup[0].GetComponentsInChildren <Canvas>(true))
            {
                c.gameObject.SetActive(true);
            }
            currentSelectSenceInteractiveInfo = senceInteractiveInfoGroup[0];
            zbz.cameraUniversalCenter         = currentSelectSenceInteractiveInfo.cameraUniversalCenter;
        }
    }
示例#18
0
    public void CloseVRGlass()
    {
        Input.gyro.enabled           = true;
        this.transform.parent        = globalManager;
        this.transform.localPosition = Vector3.zero;
        this.transform.localRotation = Quaternion.identity;
        moveUI.AlphaPlayBackward();
        zhunxUI.AlphaPlayBackward();

        leftEyeCamera.enabled  = false;
        rightEyeCamera.enabled = false;
        cameraUniversal.GetComponent <Camera>().enabled = true;
        cameraUniversal.ResetCameraStateToInitial();
//        cameraUniversal.vrMoveForward = false;
        cameraUniversal = null;
        defaultGUI.AlphaPlayForward();
    }
示例#19
0
    public void HiddenHeadInfoLabel()
    {
        canveGroupFade.AlphaPlayBackward();
        DOTween.Kill(leftText);
        DOTween.Kill(rightText);
        DOTween.Kill(leftShadow);
        DOTween.Kill(rightText);
        DOTween.Kill(rightText.rectTransform);
        DOTween.Kill(rightText.rectTransform);

        leftShadow.rectTransform.DOAnchorPosX(-150, 1);
        rightShadow.rectTransform.DOAnchorPosX(200, 1);

        leftText.DOColor(new Color(1, 1, 1, 0), 1);
        rightText.DOColor(new Color(1, 1, 1, 0), 1);
        leftShadow.color  = new Color(0, 0, 0, 0);
        rightShadow.color = new Color(0, 0, 0, 0);
    }
示例#20
0
    public void ExitPoint360()
    {
        if (hasEnterPoint360)
        {
            hasEnterPoint360 = false;
            backAction.RemoveAllBackEvent();

            exitPoint360.AlphaPlayBackward();
            exitLandscape.AlphaPlayForward();
            backActionBtn.AlphaPlayBackward();

            huXingInfoLabel.HiddenHuXingInfoLabel();

            assetBundleManager.LoopRemoveAddedScene(0);
            assetBundleManager.OnSceneRemoved.AddListener(assetBundleManager.LoopLoadSceneAssetBundleDefault);
            mainGUIPoint360Btn.SetBtnState(false, 3);
            huXingScrollMenu.GetComponent <CanveGroupFade>().AlphaPlayBackward();
        }
    }
示例#21
0
    //全屏
    public void Landscape()
    {
        leftWarning.AlphaPlayBackward();
        rightWarning.AlphaPlayForward();

        Screen.orientation = ScreenOrientation.LandscapeLeft;
        defaultGUIRoot.AlphaPlayForward();
        mainBtnGroup.AlphaPlayForward();
        triggerHXList.AlphaPlayForward();
        triggerXFGroup.AlphaPlayForward();
        triggerBackBtn.AlphaPlayForward();
        triggerVRBtn.AlphaPlayForward();
        triggerShare.AlphaPlayForward();
        triggerEnterFangJianPortrait.AlphaPlayBackward();

        appBridege.Unity2App("unityLandscape");
        Debug.Log("unityLandscape");
        GlobalDebug.Addline("unityLandscape");
    }
示例#22
0
    public void EnterHuXing()
    {
        appBridge.Unity2App("unityOpenRoomType", currentSelectHuXingType.huXingID);
        Debug.Log("unityOpenRoomType:" + currentSelectHuXingType.huXingID);
        GlobalDebug.Addline("unityOpenRoomType:" + currentSelectHuXingType.huXingID);

        sceneInteractiveManger.RenderSenceThumbnail(hxfbScene, hxfbScene.cameraUniversalCenter.currentCamera, hxfbCameraArgs);

        hxScene = sceneInteractiveManger.GetHuXingTypeInteractiveInfo(currentSelectHuXingType.hxName);

        hxScene.huXingType.hxMeshRoot.position    = hxScene.huXingType.hxNKWorldPos;
        hxScene.huXingType.hxMeshRoot.eulerAngles = new Vector3(0, hxScene.huXingType.rotOffset, 0);
        hxScene.huXingType.hxMeshRoot.gameObject.SetActive(true);

        //选房操作初始化预设
        if (sceneInteractiveManger.mainSenceInteractiveInfo != null && sceneInteractiveManger.mainSenceInteractiveInfo.louPanManager != null)
        {
            sceneInteractiveManger.mainSenceInteractiveInfo.louPanManager.GetSelectHuXinginstance(hxScene.huXingType.hxName);
            xfGUI.EnterHuXing();
        }

        triggerMusicBtn.AlphaPlayBackward();
        triggerFCZ.AlphaPlayForward();
        triggerShare.AlphaPlayForward();
        triggerHuXingThumbnail.AlphaPlayBackward();
        xfGUI.triggerOutDoorThumbnail.AlphaPlayForward();

        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);

        sceneInteractiveManger.ChangeInteractiveScene(hxScene, false);

        DisplayHuXingFloorScrollMenu();

        xfGUI.SetHXSceneAndHXFBScene(hxScene, hxfbScene);

        appBridge.Unity2App("unityOpenRoomTypeDone");
        Debug.Log("unityOpenRoomTypeDone");
        GlobalDebug.Addline("unityOpenRoomTypeDone");
    }
示例#23
0
    public void SucessConnectGUI()
    {
        remoteManger.isOtherSideOnline     = true;
        remoteManger.lastIsOtherSideOnline = true;

        if (remoteManger.runAtType == RemoteManger.RunAtType.Slave)
        {
            touchBlock.AlphaPlayForward();
        }

        SetHelpInfoString("成功连线!开始讲盘");
        infoLabelGroup[4].text = "已连接";
        infoLabelGroup[5].text = "已连接";
        GlobalDebug.Addline("成功连线!开始讲盘");
        Debug.Log("成功连线!开始讲盘");

        bg_Group.AlphaPlayBackward();

        //只要连接上后,全屏的连接提示就不使用;
        bg_Group_Trriger.AlphaPlayBackward();


        vedio_Trriger.AlphaPlayForward();

        if (!hasHeadIcoLoaded)
        {
            Loading loading = loadingManager.AddALoading(4);
            netCtrlManager.WebRequest("Loading:" + "HeadImage", appBridge.appProjectInfo.remoteUserHeadUrl, loading.LoadingAnimation,
                                      (NetCtrlManager.RequestHandler r, UnityWebRequestAsyncOperation a, string info) => { Debug.LogError("头像下载失败!"); },
                                      null,
                                      (DownloadHandlerTexture t) =>
            {
                avatarICO.texture = t.texture;
                hasHeadIcoLoaded  = true;
            },
                                      null
                                      );
        }//这是重新连接后的状况
        else
        {
        }
    }
示例#24
0
    public void OpenVRGlass()
    {
        defaultGUI.AlphaPlayBackward();
        CameraUniversal inCamera = globalManager.GetComponent <SceneInteractiveManger>().currentActiveSenceInteractiveInfo.cameraUniversalCenter.currentCamera;

        Input.gyro.enabled = true;

        cameraUniversal = inCamera;
        cameraUniversal.GetComponent <Camera>().enabled = false;
        leftEyeCamera.enabled  = true;
        rightEyeCamera.enabled = true;

        this.transform.parent        = inCamera.transform;
        this.transform.localPosition = Vector3.zero;
        this.transform.localRotation = Quaternion.identity;
        moveUI.AlphaPlayForward();
        zhunxUI.AlphaPlayForward();

        leftEyeCamera.cullingMask  = inCamera.GetComponent <Camera>().cullingMask;
        rightEyeCamera.cullingMask = inCamera.GetComponent <Camera>().cullingMask;
    }
示例#25
0
    public void EnterHuXingFloor(CameraUniversalCenter camCenter, string floorName, CanveGroupFade triggerFastMoveSM, ScrollMenu fastMoveSM)
    {
        DisplayAllFloorMesh();

        currentAtFloor.floorName = "";


        foreach (floor f in allFloor)
        {
            if (f.floorName == floorName)
            {
                currentAtFloor = f;

                isMYing = true;
                camCenter.ChangeCamera(f.cameraUniversal, 0.5f);

                if (f.pointForMove2 != null && f.pointForMove2.Length > 0)
                {
                    fastMoveSM.GetComponent <RectTransform>().DOAnchorPosY(60, 1);
                    triggerFastMoveSM.AlphaPlayForward();

                    string[] displayGroup = new string[f.pointForMove2.Length];
                    string[] paraGroup    = new string[f.pointForMove2.Length];

                    for (int i = 0; i < f.pointForMove2.Length; i++)
                    {
                        displayGroup[i] = f.pointForMove2[i].name;
                        paraGroup[i]    = i.ToString();
                    }

                    fastMoveSM.CreateItemGroup(displayGroup, paraGroup);
                }
                else
                {
                    fastMoveSM.GetComponent <RectTransform>().DOAnchorPosY(60, 1);
                    triggerFastMoveSM.AlphaPlayBackward();
                }
            }
        }
    }
示例#26
0
    public void OpenVRGlass()
    {
//     leftViewImage.rectTransform.anchoredPosition = new Vector2(-0.25f * Screen.width, 0);
//     leftViewImage.rectTransform.sizeDelta = new Vector2(-0.5f * Screen.width, 0);
//     rightViewImage.rectTransform.anchoredPosition = new Vector2(0.25f * Screen.width, 0);
//     rightViewImage.rectTransform.sizeDelta = new Vector2(-0.5f * Screen.width, 0);
//     rightViewImage

        defaultGUI.AlphaPlayBackward();
        CameraUniversal inCamera = globalManager.GetComponent <SceneInteractiveManger>().currentActiveSenceInteractiveInfo.cameraUniversalCenter.currentCamera;

        Input.gyro.enabled = true;

        cameraUniversal = inCamera;
//      cameraUniversal.GetComponent<Camera>().enabled = false;

        leftEyeCamera.enabled  = true;
        rightEyeCamera.enabled = true;

        this.transform.parent        = inCamera.transform;
        this.transform.localPosition = Vector3.zero;
        this.transform.localRotation = Quaternion.identity;
        moveUI.AlphaPlayForward();
        zhunxUI.AlphaPlayForward();

        leftEyeCamera.cullingMask  = inCamera.GetComponent <Camera>().cullingMask;
        rightEyeCamera.cullingMask = inCamera.GetComponent <Camera>().cullingMask;
        orginCameraClearFlags      = cameraUniversal.GetComponent <Camera> ().clearFlags;
        orginBackgroundColor       = cameraUniversal.GetComponent <Camera> ().backgroundColor;

        cameraUniversal.GetComponent <Camera>().cullingMask      = 0;
        cameraUniversal.GetComponent <Camera> ().clearFlags      = CameraClearFlags.SolidColor;
        cameraUniversal.GetComponent <Camera> ().backgroundColor = Color.white;


        vrViewCanveGroupFade.AlphaPlayForward();

        appBridge.Unity2App("unityVRState", "1");
    }
示例#27
0
    public void ExitHuXingFloor(bool inPortrait)
    {
        appBridge.Unity2App("unityNKLook", currentSelectHuXingType.viewDisplayMode);
        if (currentSelectHuXingType.fastMovePointManager != null)
        {
            //            currentSelectHuXingType.fastMovePointManager.SetMovePointsState(false);
            triggerLockMove.AlphaPlayBackward();
            lockMove.SetBtnState(true, 0);

            //            UnLockMove();
        }

        triggerFCZ.AlphaPlayForward();

        huXingFloorScrollMenu.SetNonStandFloorBtnVisblity(true);

        if (!inPortrait)
        {
            hxScene.huXingType.hxMeshRoot.position    = hxScene.huXingType.hxNKWorldPos;
            hxScene.huXingType.hxMeshRoot.eulerAngles = new Vector3(0, hxScene.huXingType.rotOffset, 0);
            hxfbMat.SetColor("_Color", new Color(0, 0, 0, 0.8f));
            sceneInteractiveManger.RenderSenceThumbnail(sceneInteractiveManger.thumbnailOutdoor, hxfbScene, hxfbScene.cameraUniversalCenter.currentCamera, hxfbCameraArgs);
            xfGUI.CloseXFMenu();
        }
        else
        {
            if (hxScene != null && hxScene.websky != null)
            {
                hxScene.websky.gameObject.SetActive(false);
            }
        }


        currentSelectHuXingType.ExitHuXingFloor(hxScene.cameraUniversalCenter);

        huXingFastMoveScrollMenu.GetComponent <RectTransform>().DOAnchorPosY(60, 1);
        triggerFastMoveSM.AlphaPlayBackward();
    }
示例#28
0
    public void DisplayUI(string state)
    {
        switch (state)
        {
        case "0":
            defaultGUIRoot.AlphaPlayBackward();
            break;

        case "1":
            defaultGUIRoot.AlphaPlayForward();
            isPortraitUI = false;

//                triggerMusic.AlphaPlayForward();
            leftWarning.AlphaPlayBackward();
            rightWarning.AlphaPlayForward();
            mainBtnGroup.AlphaPlayForward();
            triggerHXList.AlphaPlayForward();
            triggerXFGroup.AlphaPlayForward();
            triggerBackBtn.AlphaPlayForward();
            triggerExit.AlphaPlayForward();
            triggerVRBtn.AlphaPlayForward();
            triggerShare.AlphaPlayForward();
            triggerEnterFangJianPortrait.AlphaPlayBackward();
            //设置卡通角色
            CartoonPlayer.hasInit = true;
            sceneInteractiveManger.PlayCartoonAni();

            //在线讲盘设置,在线讲盘
            if (appBridge.appProjectInfo.sceneLoadMode == "9")
            {
                triggerExit.AlphaPlayBackward();
                triggerVRBtn.AlphaPlayBackward();
                triggerShare.AlphaPlayBackward();
                AppBridge.isInRemoteState = true;
            }

            break;

        case "2":
            defaultGUIRoot.AlphaPlayForward();
            isPortraitUI = true;

            leftWarning.AlphaPlayForward();
            rightWarning.AlphaPlayBackward();
            mainBtnGroup.AlphaPlayBackward();
            triggerHXList.AlphaPlayBackward();
            triggerXFGroup.AlphaPlayBackward();
            triggerBackBtn.AlphaPlayBackward();
            triggerExit.AlphaPlayBackward();
            triggerVRBtn.AlphaPlayBackward();
            triggerShare.AlphaPlayBackward();
            triggerEnterFangJianPortrait.AlphaPlayForward();
//                triggerMusic.AlphaPlayBackward();

            //设置卡通角色
            CartoonPlayer.hasInit = false;
            sceneInteractiveManger.CloseCartoonAni();

            break;
        }
//     appBridege.Unity2App("DisplayUI");
        Debug.Log("DisplayUI " + state);
        GlobalDebug.Addline("DisplayUI " + state);
    }
示例#29
0
 public void AddToBackBtnGroup(ImageButton iBtn)
 {
     needBackBtnGroup.Add(iBtn);
     backBtn.AlphaPlayForward();
     exitBtn.AlphaPlayBackward();
 }
示例#30
0
    public void CloseTotalInfo()
    {
        canveGroupFade.AlphaPlayBackward();
        holdRoot.DOScaleX(1, 1).OnComplete(DestroyAllPoint);
//      Destroy(allCirclePoint);
    }