Esempio n. 1
0
        public override void InitUIData()
        {
            m_Inst = this;

            CurOpenType = EM_RECHARGEBOX_OPEN_TYPE.NONE;

            Description_text = selfTransform.FindChild("MaxBagnum").GetComponent <Text>();
            DesTxt           = selfTransform.FindChild("DesTxt").GetComponent <Text>();

            Consume_Image   = selfTransform.FindChild("AddHeroBagBtn/unnormal/xiaohao/ConsumeImage").GetComponent <Image>();
            ConNum          = selfTransform.FindChild("AddHeroBagBtn/unnormal/xiaohao/ConNum").GetComponent <Text>();
            Left_Btn        = selfTransform.FindChild("AddHeroBagBtn").GetComponent <Button>();
            Right_Btn       = selfTransform.FindChild("ReturnBtn").GetComponent <Button>();
            Left_NormalBt   = selfTransform.FindChild("AddHeroBagBtn/normal").gameObject;
            Left_UnNormalBt = selfTransform.FindChild("AddHeroBagBtn/unnormal").gameObject;
            LeftBtn_text    = selfTransform.FindChild("AddHeroBagBtn/unnormal/Text").GetComponent <Text>();
            LeftBtn_Midtext = selfTransform.FindChild("AddHeroBagBtn/normal/Text").GetComponent <Text>();
            RightBtn_text   = selfTransform.FindChild("ReturnBtn/Text").GetComponent <Text>();
            TotalMoneyObj   = selfTransform.FindChild("MoneyBar").gameObject;
            TotalMoneyImg   = selfTransform.FindChild("MoneyBar/Gold/Image").GetComponent <Image>();
            TotalMoneyTxt   = selfTransform.FindChild("MoneyBar/Gold/bg/Text").GetComponent <Text>();
            Left_Btn_Img    = selfTransform.FindChild("AddHeroBagBtn").GetComponent <Image>();

            SetRightClick(OnCloes);
        }
Esempio n. 2
0
 void OnDestroy()
 {
     m_Inst = null;
 }