Example #1
0
    /// <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];
                        }
                    }

                    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");
                }
            }
        }
    }
Example #2
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");
    }
Example #3
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);
        }
    }
Example #4
0
    public void OpenXFMenu()
    {
        //     hxScene = inHXScene;
        //     hxfbScene = inHXFBScene;
        currentL = hxfbScene.louPanManager;

        if (currentL != null && (sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.loft || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.平层 || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.独栋 || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.叠拼 || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.联排))
        {
            xfCanveGroupFade.AlphaPlayForward();

            //从默认主场景中获取楼号map映射

            if (currentL.louHaoNameDictionary != null)
            {
                louHaoNameDictionary = currentL.louHaoNameDictionary;
            }

            if (currentL.unitNameDictionary != null)
            {
                unitNameDictionary = currentL.unitNameDictionary;
            }

            OpenChooseBuildingMenu();

            btnChooseBuild.SetBtnState(true, 0);
            if (buildScrollMenu.GetFirstScrollItem() != null)
            {
                buildScrollMenu.GetFirstScrollItem().GetComponent <ImageButton>().SetBtnState(true, 0);
            }
        }
    }
Example #5
0
 public void OpenImagePlayer()
 {
     if (netTexture2DGroup.Count > 0)
     {
         ToImage(0);
         if (netTexture2DGroup.Count > 1)
         {
             nextBtn.AlphaPlayForward();
             preBtn.AlphaPlayBackward();
         }
     }
     else
     {
         scaleImage.FullScreen();
     }
 }
Example #6
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");
    }
Example #7
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();
    }
Example #8
0
    public void EnterHuXing()
    {
        foreach (SenceInteractiveInfo s in senceInteractiveInfoGroup)
        {
            if (s.huXingType.hxName == currentSelectHuXingType.hxName)
            {
                if (s != null && senceInteractiveInfoGroup[0] != null)
                {
                    currentSelectSenceInteractiveInfo   = s;
                    s.huXingType.hxMeshRoot.position    = s.huXingType.hxNKWorldPos;
                    s.huXingType.hxMeshRoot.eulerAngles = new Vector3(0, s.huXingType.rotOffset, 0);
                    s.huXingType.hxMeshRoot.gameObject.SetActive(true);

                    //选房操作初始化预设
                    if (senceInteractiveInfoGroup[0].sceneType == SenceInteractiveInfo.SceneType.大场景 && senceInteractiveInfoGroup[0].louPanManager != null)
                    {
                        louPanManager = senceInteractiveInfoGroup[0].louPanManager;
                        louPanManager.GetSelectHuXinginstance(s.huXingType.hxName);

                        buildScrollMenu.GetComponentInParent <Transform>().DOLocalMoveY(-700, 0.3f);
                        unitScrollMenu.GetComponentInParent <Transform>().DOLocalMoveY(-700, 0.3f);
                        hxInstanceScrollMenu.GetComponentInParent <Transform>().DOLocalMoveY(-700, 0.3f);
                    }
                }
            }
        }

        triggerHuXingThumbnail.AlphaPlayBackward();
        triggerOutDoorThumbnail.AlphaPlayForward();

        huXingCameraBG.transform.parent        = currentSelectSenceInteractiveInfo.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);

        senceInteractiveInfoGroup[0].cameraUniversalCenter.currentCamera.GetComponent <Camera>().targetTexture = thumbnail;
        senceInteractiveInfoGroup[0].cameraUniversalCenter.currentCamera.GetComponent <Camera>().Render();
        senceInteractiveInfoGroup[0].cameraUniversalCenter.currentCamera.GetComponent <Camera>().targetTexture = null;

        senceInteractiveInfoGroup[0].cameraUniversalCenter.ChangeCamera(currentSelectSenceInteractiveInfo.cameraUniversalCenter.cameras[0], 0.0f);

        zbz.cameraUniversalCenter = currentSelectSenceInteractiveInfo.cameraUniversalCenter;

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

        foreach (Canvas c in senceInteractiveInfoGroup[0].GetComponentsInChildren <Canvas>(true))
        {
            c.gameObject.SetActive(false);
        }

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

        DisplayHuXingFloorScrollMenu();
    }
Example #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");
    }
Example #10
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");
    }
Example #11
0
    public void EnterPoint360()
    {
        if (!hasEnterPoint360)
        {
            hasEnterPoint360 = true;
            backAction.RemoveAllBackEvent();

            exitLandscape.AlphaPlayBackward();
            exitPoint360.AlphaPlayForward();
            backActionBtn.AlphaPlayBackward();
        }
    }
Example #12
0
    public void SucessConnect()
    {
        if (remoteManger.runAtType == RemoteManger.RunAtType.Slave)
        {
            touchBlock.AlphaPlayForward();
        }

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

        bg_Group.AlphaPlayBackward();
    }
Example #13
0
    public void DisplayHeadInfoLabel(int targetID)
    {
        canveGroupFade.AlphaPlayForward();
        if (displayString.Length > 0)
        {
            if (targetID < displayString.Length)
            {
                string[] splitStr = displayString[targetID].Split(',');
                if (splitStr.Length == 2)
                {
                    leftText.text    = splitStr[0];
                    leftShadow.text  = splitStr[0];
                    rightText.text   = splitStr[1];
                    rightShadow.text = splitStr[1];


                    leftShadow.rectTransform.anchoredPosition  = new Vector2(-150, 0);
                    rightShadow.rectTransform.anchoredPosition = new Vector2(200, 0);

                    leftText.color  = new Color(1, 1, 1, 0);
                    rightText.color = new Color(1, 1, 1, 0);

                    leftShadow.color  = new Color(0, 0, 0, 0);
                    rightShadow.color = new Color(0, 0, 0, 0);


                    DOTween.Kill(leftText);
                    DOTween.Kill(rightText);
                    DOTween.Kill(rightText);
                    DOTween.Kill(rightShadow);

                    DOTween.Kill(rightText.rectTransform);
                    DOTween.Kill(rightShadow.rectTransform);


//                    leftText.rectTransform.DOAnchorPosX(150, 2);
                    leftShadow.rectTransform.DOAnchorPosX(150, 2);
//                    rightText.rectTransform.DOAnchorPosX(-50, 2);
                    rightShadow.rectTransform.DOAnchorPosX(-50, 2);


                    leftText.DOColor(new Color(1, 1, 1, 1), 2);
                    rightText.DOColor(new Color(1, 1, 1, 1), 2);
                    leftShadow.DOColor(new Color(0, 0, 0, 1), 2);
                    rightShadow.DOColor(new Color(0, 0, 0, 1), 2);
                }
            }
        }
    }
Example #14
0
    public void Back()
    {
//      Debug.Log(needBackBtnGroup.Count);

        if (needBackBtnGroup.Count > 0)
        {
            needBackBtnGroup[needBackBtnGroup.Count - 1].SetBtnState(false, 0);
            needBackBtnGroup.RemoveAt(needBackBtnGroup.Count - 1);
        }

        if (needBackBtnGroup.Count == 0)
        {
            backBtn.AlphaPlayBackward();
            exitBtn.AlphaPlayForward();
        }
    }
Example #15
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();
    }
Example #16
0
    public void EnterHuXingFloor()
    {
        Debug.Log("EnterHuXingFloor");
        huXingFloorScrollMenu.SetNonStandFloorBtnVisblity(false);
        currentSelectHuXingType.EnterHuXingFloor(currentSelectSenceInteractiveInfo.cameraUniversalCenter, "1F");

        if (currentSelectSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.loft || currentSelectSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.平层 || currentSelectSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.独栋)
        {
            xfCanveGroupFade.AlphaPlayForward();
            hxfbMat.SetColor("_Color", new Color(0, 0, 0, 0.0f));
        }

        btnChooseBuild.SetBtnState(true, 0);
        if (buildScrollMenu.GetFirstScrollItem() != null)
        {
            buildScrollMenu.GetFirstScrollItem().GetComponent <ImageButton>().SetBtnState(true, 0);
        }
    }
Example #17
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();
        }
    }
Example #18
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();
    }
Example #19
0
    public void OpenXFMenu()
    {
        //     hxScene = inHXScene;
        //     hxfbScene = inHXFBScene;
        currentL = hxfbScene.louPanManager;

        if (sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.loft || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.平层 || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.独栋 || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.叠拼 || sceneInteractiveManger.currentActiveSenceInteractiveInfo.sceneType == SenceInteractiveInfo.SceneType.联排)
        {
            xfCanveGroupFade.AlphaPlayForward();

            OpenChooseBuildingMenu();

            btnChooseBuild.SetBtnState(true, 0);
            if (buildScrollMenu.GetFirstScrollItem() != null)
            {
                buildScrollMenu.GetFirstScrollItem().GetComponent <ImageButton>().SetBtnState(true, 0);
            }
        }
    }
Example #20
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");
    }
Example #21
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
        {
        }
    }
Example #22
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;
    }
Example #23
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();
                }
            }
        }
    }
Example #24
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");
    }
Example #25
0
    public void EnterHuXingFloor(bool inPortrait)
    {
        appBridge.Unity2App("unityMYLook", currentSelectHuXingType.viewDisplayMode);
        Debug.Log("EnterHuXingFloor");

        if (hxScene)
        {
            triggerFCZ.AlphaPlayBackward();
        }

        if (!inPortrait)
        {
            hxfbMat.SetColor("_Color", new Color(0, 0, 0, 0.0f));
            //得先执行OpenXFMenu,要判断是否镜像户型
            xfGUI.OpenXFMenu();
//            Debug.Log("2333");
        }
        else
        {
            if (hxScene != null && hxScene.websky != null)
            {
                hxScene.websky.gameObject.SetActive(true);
            }
        }

        huXingFloorScrollMenu.SetNonStandFloorBtnVisblity(false);
        currentSelectHuXingType.EnterHuXingFloor(sceneInteractiveManger.currentActiveSenceInteractiveInfo.cameraUniversalCenter, currentSelectHuXingType.GetDefaultMYFloorName(), triggerFastMoveSM, huXingFastMoveScrollMenu);

        if (currentSelectHuXingType.fastMovePointManager != null)
        {
//            currentSelectHuXingType.fastMovePointManager.SetMovePointsState(true);
            triggerLockMove.AlphaPlayForward();
            lockMove.SetBtnState(false, 0);
//            LockMove();
        }
    }
Example #26
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);
    }
Example #27
0
 public void OpenTotalInfo(int assetBundleCount)
 {
     canveGroupFade.AlphaPlayForward();
     CreatTotalCirclePoint(assetBundleCount);
 }
Example #28
0
    void PrcessProjectInfo(ProjectRootInfo inProjectRootInfo, bool isLoadFromCache = false)
    {
        //判断是否有外部全景图链接
        if (projectRootInfo.data.panoramaSwitch.isShow == 1)
        {
            Trigger_ToPanoramaBtn.AlphaPlayForward();
        }

        string log = "是否加载本地缓存ProjectInfo.txt:" + isLoadFromCache;

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

        //声明信息
        if (inProjectRootInfo.data.declareSwitch == "1")
        {
            string[] infoGroup = inProjectRootInfo.data.declareContent.Split('#');
            if (infoGroup.Length == 2)
            {
                string infoFinal = infoGroup[0] + "\n" + infoGroup[1];
                warningLabel.text  = infoFinal;
                warningLabel2.text = infoFinal;
            }
        }
        else
        {
            warningLabel2.text = "";
        }

        proInfoTextTable.SetString(inProjectRootInfo.data.proName, inProjectRootInfo.data.proDiscr);



        imageCache.allNetTextrue2D = new List <NetTexture2D>();

        defaultGUI.quweiImagePlayer.netTexture2DGroup = new List <NetTexture2D>();

        for (int i = 0; i < inProjectRootInfo.data.qwInfo.Length; i++)
        {
            QwImage q = inProjectRootInfo.data.qwInfo[i];

            string modiferTime = q.modifyTime.Replace(" ", "").Replace("-", "").Replace(":", "");
            string qwImageUrl  = "downloadId=" + inProjectRootInfo.data.projectid + "&downloadType=10&mediaType=2&fileName=" + q.quweiImg;
            string qwImageName = modiferTime + q.quweiImg;

            List <NetTexture2D> tempFindGroup = imageCache.allNetTextrue2D.Where(n => n.texName == qwImageName).Select(n => n).ToList();

            if (tempFindGroup.Count == 0)
            {
                NetTexture2D temp = new NetTexture2D(qwImageName, qwImageUrl, imageCache);
                defaultGUI.quweiImagePlayer.netTexture2DGroup.Add(temp);
                imageCache.allNetTextrue2D.Add(temp);
            }
            else if (tempFindGroup.Count > 0)
            {
                defaultGUI.quweiImagePlayer.netTexture2DGroup.Add(tempFindGroup[0]);
            }
        }

        HXInfo[] hx = inProjectRootInfo.data.hxInfo;
        hxGUI.hxSceneHuXingTypeFinal = new HuXingType[hx.Length];

        for (int i = 0; i < hx.Length; i++)
        {
            hxGUI.hxSceneHuXingTypeFinal[i]                 = new HuXingType();
            hxGUI.hxSceneHuXingTypeFinal[i].hxName          = hx[i].modeName;
            hxGUI.hxSceneHuXingTypeFinal[i].viewDisplayMode = hx[i].mode3Ddisplay == null?"1":hx[i].mode3Ddisplay;
//            Debug.Log(hx[i].mode3Ddisplay);
            hxGUI.hxSceneHuXingTypeFinal[i].displayName = hx[i].display;
            //hxGUI.hxSceneHuXingTypeFinal[i].huXingID = hx[i].id;
            hxGUI.hxSceneHuXingTypeFinal[i].normalPrice  = -1;
            hxGUI.hxSceneHuXingTypeFinal[i].normalArea   = float.Parse(hx[i].area);
            hxGUI.hxSceneHuXingTypeFinal[i].fangXing     = hx[i].modeFormat;
            hxGUI.hxSceneHuXingTypeFinal[i].leiXing      = "";
            hxGUI.hxSceneHuXingTypeFinal[i].introduction = hx[i].discr;
            //hxGUI.hxSceneHuXingTypeFinal[i].pmtUrl = "";
            hxGUI.hxSceneHuXingTypeFinal[i].allFloor          = new HuXingType.floor[hx[i].floorData.Length];
            hxGUI.hxSceneHuXingTypeFinal[i].netTexture2DGroup = new List <NetTexture2D>();

            for (int j = 0; j < hxGUI.hxSceneHuXingTypeFinal[i].allFloor.Length; j++)
            {
                hxGUI.hxSceneHuXingTypeFinal[i].huXingID = hx[i].modeId;


//                Debug.Log(hx[i].floorData[j].modeFloor);
                //服务器上的modeFloor表示的意思是Unity中floorName的意思
                hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].floorName   = hx[i].floorData[j].modeFloor;
                hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].displayName = hx[i].floorData[j].floorName;

                string modiferTime = hx[i].floorData[j].modifyTime.Replace(" ", "").Replace("-", "").Replace(":", "");
                hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].pmtUrl  = "downloadId=" + hx[i].floorData[j].modeId + "&downloadType=3&mediaType=2&fileName=" + hx[i].floorData[j].fileName;
                hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].pmtName = modiferTime + hx[i].floorData[j].fileName;

                if (hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].pmtName != "")
                {
//                  hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].pmtName = "A" + (j+1) + ".jpg";
                    List <NetTexture2D> tempFindGroup = imageCache.allNetTextrue2D.Where(n => n.texName == hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].pmtName).Select(n => n).ToList();

                    if (tempFindGroup.Count == 0)
                    {
                        //测试用
                        //NetTexture2D temp = new NetTexture2D("A" + (j + 1) + ".jpg", "A" + (j + 1) + ".jpg", imageCache);
                        //服务器用
                        NetTexture2D temp = new NetTexture2D(hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].pmtName, hxGUI.hxSceneHuXingTypeFinal[i].allFloor[j].pmtUrl, imageCache);

                        hxGUI.hxSceneHuXingTypeFinal[i].netTexture2DGroup.Add(temp);
                        imageCache.allNetTextrue2D.Add(temp);
                    }
                    else if (tempFindGroup.Count > 0)
                    {
                        hxGUI.hxSceneHuXingTypeFinal[i].netTexture2DGroup.Add(tempFindGroup[0]);
                    }
                }
            }
        }

        if (isLoadFromCache)
        {
            assetBundleManager.serverProjectAssetBundlesInfo = JsonUtility.FromJson <ProjectAssetBundlesInfo>(File.ReadAllText(pathAndURL.localProjectAssetBundlesInfoPath));
            assetBundleManager.StartLoadAssetBundle(assetBundleManager.serverProjectAssetBundlesInfo);
        }
        else
        {
            onServerProjectInfoLoaded.Invoke(inProjectRootInfo.data.projectid);

//            assetBundleManager.LoadProjcetAssetBundles
        }
    }
Example #29
0
    public void DisplayHuXingInfoLabel(string inStr)
    {
//      Debug.Log(inStr);

        if (inStr != null)
        {
            canveGroupFade.AlphaPlayForward();

            string[] spilitStr = inStr.Split('^');

            for (int i = 0; i < spilitStr.Length; i++)
            {
                labelGroup[i * 2].text     = spilitStr[i];
                labelGroup[i * 2 + 1].text = spilitStr[i];
            }

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


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

            baseGroup[0].transform.localPosition = new Vector3(0, -300, 0);
            baseGroup[1].transform.localPosition = new Vector3(0, -300, 0);
            baseGroup[2].transform.localPosition = new Vector3(0, -300, 0);
            baseGroup[3].transform.localPosition = new Vector3(0, -300, 0);
            baseGroup[4].transform.localPosition = new Vector3(0, -300, 0);
            baseGroup[5].transform.localPosition = new Vector3(0, -300, 0);
            baseGroup[6].transform.localPosition = new Vector3(0, -300, 0);

            baseGroup[0].GetComponent <CanvasGroup>().alpha = 0;
            baseGroup[1].GetComponent <CanvasGroup>().alpha = 0;
            baseGroup[2].GetComponent <CanvasGroup>().alpha = 0;
            baseGroup[3].GetComponent <CanvasGroup>().alpha = 0;
            baseGroup[4].GetComponent <CanvasGroup>().alpha = 0;
            baseGroup[5].GetComponent <CanvasGroup>().alpha = 0;
            baseGroup[6].GetComponent <CanvasGroup>().alpha = 0;

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

            baseGroup[0].transform.DOLocalMoveY(0, 0.5f).SetDelay(0);
            baseGroup[1].transform.DOLocalMoveY(0, 0.5f).SetDelay(0.1f);
            baseGroup[2].transform.DOLocalMoveY(0, 0.5f).SetDelay(0.2f);
            baseGroup[3].transform.DOLocalMoveY(0, 0.5f).SetDelay(0.3f);
            baseGroup[4].transform.DOLocalMoveY(0, 0.5f).SetDelay(0.4f);
            baseGroup[5].transform.DOLocalMoveY(0, 0.5f).SetDelay(0.4f);
            baseGroup[6].transform.DOLocalMoveY(0, 0.5f).SetDelay(0.5f);
        }
    }
Example #30
0
 public void DisplayHelpInfo()
 {
     GetComponent <CanveGroupFade>().AlphaPlayForward();
     bg_Group.AlphaPlayForward();
 }