示例#1
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);
            }
        }
    }
示例#2
0
    public void ChooseBuildingNo(string louID)
    {
        Debug.Log(louID);
        SetBuildingLayer(buildTextLabel.text, 0);
        buildTextLabel.text = louID;
        SetBuildingLayer(louID, 30);
        btnChooseBuild.CleanState();

        btnChooseUnit.SetBtnState(true, 0);
        if (unitScrollMenu.GetFirstScrollItem() != null)
        {
            unitScrollMenu.GetFirstScrollItem().GetComponent <ImageButton>().SetBtnState(true, 0);
        }
    }
示例#3
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);
        }
    }
示例#4
0
    public void ChooseBuildingNo(string louID)
    {
        Debug.Log(louID);
        SetBuildingLayer(currentLouID, 0);
        buildTextLabel.text = louID;

        currentLouID = int.Parse(louID);

        if (louHaoNameDictionary != null && louHaoNameDictionary.ContainsKey(currentLouID))
        {
            buildTextLabel.text = louHaoNameDictionary[currentLouID];
        }

        SetBuildingLayer(currentLouID, 30);
        btnChooseBuild.CleanState();

        btnChooseUnit.SetBtnState(true, 0);

        if (unitScrollMenu.GetFirstScrollItem() != null)
        {
            unitScrollMenu.GetFirstScrollItem().GetComponent <ImageButton>().SetBtnState(true, 0);
        }
    }