void OnDisable()
        {
            HeroModelBack.Inst.ChangePanel("HeroBg");
            UI_HeroInfo temp = UI_HeroInfo._instance;

            if (temp != null)
            {
                temp.uiMark = Core.UIMark.DefaultMark;
                GameEventDispatcher.Inst.dispatchEvent(GameEventID.UI_InterfaceChange);
            }
        }
        void OnEnable()
        {
            HeroModelBack.Inst.ChangePanel("HeroAdv");
            UI_HeroInfo temp = UI_HeroInfo._instance;

            if (temp != null)
            {
                temp.uiMark = Core.UIMark.HeroUpgrade;
                GameEventDispatcher.Inst.dispatchEvent(GameEventID.UI_InterfaceChange);
            }
        }
Пример #3
0
        // =====================  ========================
        public override void InitUIData()
        {
            _instance = this;
            base.InitUIData();

            //m_HeroInfoTipsImage = selfTransform.FindChild("TopPanel/BtnGroup/TitleButton_0/TipsImage").gameObject;
            //m_RuneTipsImage = selfTransform.FindChild("TopPanel/BtnGroup/TitleButton_1/TipsImage").gameObject;
            //m_AttributeTipsImage = selfTransform.FindChild("TopPanel/BtnGroup/TitleButton_2/TipsImage").gameObject;
            //m_SkillUpImage = selfTransform.FindChild("TopPanel/BtnGroup/TitleButton_3/TipsImage").gameObject;
            //m_LevelUpTipsImage = selfTransform.FindChild("HeroInfo/LevelUP_btn/TipsImage").gameObject;
            //m_UpgradeTipsImage = selfTransform.FindChild("HeroInfo/OrderUP_btn/TipsImage").gameObject;

            Back_btn    = selfTransform.FindChild("TopPanel/TopTittle/BackBtn").GetComponent <Button>();
            MsgBoxGroup = selfTransform.FindChild("MsgBoxGroup");
            //m_captionPoston = selfTransform.FindChild("captionPostion");
            //事件监听
            Back_btn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickBackBtn));

            ////m_TipsController = CreateFunctionTipsController();
            //HomeControler.Inst.PushFunly(0, 68);
            //GameEventDispatcher.Inst.addEventListener(GameEventID.U_HeroChangeTarget, RefreshTipsController);
            //GameEventDispatcher.Inst.addEventListener(GameEventID.HE_HeroLevelUpSucceed, RefreshTipsController);
            //GameEventDispatcher.Inst.addEventListener(GameEventID.HE_HeroBeginnerUpdateShow, RefreshTipsController);
        }