Пример #1
0
    public override void InitEvent()
    {
        base.InitEvent();

        for (int i = 0; i < MenuButton.Length; i++)
        {
            InitVRButton(MenuButton[i], i);
        }

        MenuButton[0].mOnClick.AddListener(() => {
            if (!tutorialPanel.IsOpen)
            {
                detailsPanel.SwitchJianjiePanel();
            }
        });

        MenuButton[1].mOnClick.AddListener(() => {
            if (!tutorialPanel.IsOpen)
            {
                detailsPanel.SwitchPanel(detailsPanel.OI_Sprite, "操作说明");
            }
        });

        MenuButton[2].mOnClick.AddListener(() => {
            if (tutorialPanel.IsTeaching)
            {
                if (tutorialPanel.IsOpen)
                {
                    if (!tutorialPanel.IsTeach1)
                    {
                        tutorialPanel.IsTeach1 = true;
                        tutorialPanel.Tutorial_2();
                        detailsPanel.SwitchPanel(detailsPanel.HuXing_Sprite, "户型选择");
                        MenuButton[2].transform.GetComponent <Image>().sprite           = Sprite_weidianji[2];
                        MenuButton[2].transform.GetChild(0).GetComponent <Text>().color = Text_Color;
                    }
                }
                else
                {
                    detailsPanel.SwitchPanel(detailsPanel.HuXing_Sprite, "户型选择");
                }
            }
        });
    }