public override void Awake() { base.Awake(); var t = mDMono.transform; Container = t.FindEx("Container").gameObject; DynamicScroll = t.GetMonoILRComponent <LTChallengeInstanceBagScroll>("Container/BottomRight/Right/Scroll/PlaceHolder/Grid"); DynamicScroll.SetOnBtnClickAction(OnSkillScrollItemClick); FirstBagCell = DynamicScroll.mDMono.transform.GetMonoILRComponent <LTChallengeInstanceBagCell>("Row/Item"); ScrollTipsGO = t.GetComponent <TweenScale>("Container/SkillTips"); SkillTipsItem = t.GetMonoILRComponent <LTShowItem>("Container/SkillTips/TweenHUD/UpGroup/LTShowItem"); SkillNameLabel = t.GetComponent <UILabel>("Container/SkillTips/TweenHUD/UpGroup/Label"); CostMagicLabel = t.GetComponent <UILabel>("Container/SkillTips/TweenHUD/UpGroup/Magic/Label"); DescLabel = t.GetComponent <UILabel>("Container/SkillTips/TweenHUD/Desc"); t.GetComponent <UIButton>("Container/BottomRight/Bg/Top/RuleBtn").onClick.Add(new EventDelegate(OnRuleBtnClick)); t.GetComponent <UIButton>("Container/BottomRight/Bg/Top/CancelBtn").onClick.Add(new EventDelegate(OnClose)); t.GetComponent <UIButton>("Container/SkillTips/TweenHUD/UseBtn").onClick.Add(new EventDelegate(OnUseSkillBtnClick)); GameObject go = t.FindEx("Container/BottomRight/Right/Scroll/PlaceHolder/Grid/Row/Item").gameObject; GameObject go1 = t.FindEx("Container/BottomRight/Right/Scroll/PlaceHolder/Grid/Row/Item (1)").gameObject; GameObject go2 = t.FindEx("Container/BottomRight/Right/Scroll/PlaceHolder/Grid/Row/Item (2)").gameObject; GameObject go3 = t.FindEx("Container/BottomRight/Right/Scroll/PlaceHolder/Grid/Row/Item (3)").gameObject; t.GetComponent <UIEventTrigger>("Container/Background").onClick.Add(new EventDelegate(OnClose)); }