示例#1
0
            public UserProfile(Transform parent)
            {
                ImgSimpleUserProfile = parent.FindChildComponent <UIModuleModelImage>("Canvas/TopLeftPanel/User_Profile");
                Debug.Assert(null != ImgSimpleUserProfile);

                TextUserLevel = parent.FindChildComponent <Text>("Canvas/TopLeftPanel/User_Profile/Lv_Slot/Text");
                Debug.Assert(null != TextUserLevel);

                TextUserName = parent.FindChildComponent <Text>("Canvas/TopLeftPanel/User_Name");
                Debug.Assert(null != TextUserName);


                ImgFilledUserHP = parent.FindChildComponent <UIModuleModelImage>("Canvas/TopLeftPanel/User_HP/User_HP_Progress_Bar");
                Debug.Assert(null != ImgFilledUserHP);

                TextUserHP = parent.FindChildComponent <Text>("Canvas/TopLeftPanel/User_HP/Hp_Num");
                Debug.Assert(null != TextUserHP);

                ImgFilledUserSP = parent.FindChildComponent <UIModuleModelImage>("Canvas/TopLeftPanel/User_SP/User_SP_Progress_Bar");
                Debug.Assert(null != ImgFilledUserSP);

                TextUserSP = parent.FindChildComponent <Text>("Canvas/TopLeftPanel/User_SP/Sp_Num");
                Debug.Assert(null != TextUserSP);

                this.SetActive(false);
            }
示例#2
0
        private void InitUIModule()
        {
            // Top Left  Panel
            {
                _panelTopLeft = transform.FindChildComponent <Transform>("Canvas/TopLeftPanel");
                Debug.Assert(null != _panelTopLeft);

                _userProfile = new UserProfile(transform);
            }

            // Top Right Panel
            {
                _panelTopRight = transform.FindChildComponent <Transform>("Canvas/TopRightPanel");
                Debug.Assert(null != _panelTopRight);

                _bossProfile = new BossProfile(transform);
            }

            // Center Panel
            {
                _panelCenter = transform.FindChildComponent <Transform>("Canvas/CenterPanel");
                Debug.Assert(null != _panelCenter);

                _imgWarningBlood = transform.FindChildComponent <UIModuleModelImage>("Canvas/CenterPanel/Warning_blood");
                Debug.Assert(null != _imgWarningBlood);
                _imgWarningBlood.gameObject.SetActive(false);

                _panelCombo = transform.FindChildComponent <Transform>("Canvas/CenterPanel/Combo");
                Debug.Assert(null != _panelCombo);
                _panelCombo.gameObject.SetActive(false);

                _panelDungeonTitle = transform.FindChildComponent <Transform>("Canvas/CenterPanel/Dungeon_Title");
                Debug.Assert(null != _panelDungeonTitle);
                _panelDungeonTitle.gameObject.SetActive(false);

                _panelGoTitle = transform.FindChildComponent <Transform>("Canvas/CenterPanel/GO_Title");
                Debug.Assert(null != _panelGoTitle);
                _panelGoTitle.gameObject.SetActive(false);
            }

            // Bottom Center Panel
            {
                _panelBottomCenter = transform.FindChildComponent <Transform>("Canvas/BottomCenterPanel");
                Debug.Assert(null != _panelBottomCenter);
                _panelBottomCenter.gameObject.SetActive(false);
            }
        }
示例#3
0
            public BossProfile(Transform parent)
            {
                ImgSimpleBossProfile = parent.FindChildComponent <UIModuleModelImage>("Canvas/TopRightPanel/Boss_Profile");
                Debug.Assert(null != ImgSimpleBossProfile);

                TextBossLevel = parent.FindChildComponent <Text>("Canvas/TopRightPanel/Boss_Profile/Lv_Slot/Text");
                Debug.Assert(null != TextBossLevel);

                TextBossName = parent.FindChildComponent <Text>("Canvas/TopRightPanel/Boss_Name");
                Debug.Assert(null != TextBossName);

                PanelBossHP = parent.FindChildComponent <Transform>("Canvas/TopRightPanel/Boss_HP");
                Debug.Assert(null != PanelBossHP);

                ImgFilledBossHP = parent.FindChildComponent <UIModuleModelImage>("Canvas/TopRightPanel/Boss_HP/Boss_HP_Progress_Bar");
                Debug.Assert(null != ImgFilledBossHP);

                TextBossHP = parent.FindChildComponent <Text>("Canvas/TopRightPanel/Boss_HP/Hp_Num");
                Debug.Assert(null != TextBossHP);

                this.SetActive(false);
            }