Пример #1
0
        public override void Awake()
        {
            base.Awake();
            var t = controller.transform;

            DetailBehaviour = t.GetMonoILRComponent <ArtifactDetailBehaviour>("Bg");
            t.GetComponent <UIButton>("Bg/Top/CloseBtn").onClick.Add(new EventDelegate(OnCancelButtonClick));
            t.GetComponent <ConsecutiveClickCoolTrigger>("Bg/UpLevelBtn").clickEvent
            .Add(new EventDelegate(OnUpLevelBtnClick));
            Messenger.AddListener(EventName.ArtifactRefresh, ArtifactRefresh);
        }
Пример #2
0
        public override void Awake()
        {
            base.Awake();
            var t = controller.transform;

            DetailBehaviour = t.GetMonoILRComponent <ArtifactDetailBehaviour>("Bg");
            t.GetComponent <UIButton>("Bg/Top/CloseBtn").onClick.Add(new EventDelegate(OnCancelButtonClick));
            t.GetComponent <ConsecutiveClickCoolTrigger>("Bg/UpLevelBtn").clickEvent
            .Add(new EventDelegate(OnCancelButtonClick));
            Template = t.Find("Bg/SkillDesc/Container/Template").gameObject;
        }
Пример #3
0
        public override void Awake()
        {
            base.Awake();
            var t = controller.transform;

            Icon            = t.GetComponent <DynamicUISprite>("Icon");
            Shadow          = Icon.transform.Find("Icon").gameObject;
            ArtifactName    = t.GetComponent <UILabel>("Name");
            DetailBehaviour = t.GetMonoILRComponent <ArtifactDetailBehaviour>("Container/Bg");
            ShowItem        = t.GetMonoILRComponent <LTShowItem>("LTShowItem");
            ShowItemCount   = t.GetComponent <UILabel>("LTShowItem/CountLabel");
            MaxTip          = t.FindEx("Container/Bg/MaxTip").gameObject;
            t.GetComponent <UIButton>("BG/CancelBtn").onClick.Add(new EventDelegate(OnCancelButtonClick));
            button   = t.GetComponent <ConsecutiveClickCoolTrigger>("Container/Bg/UpLevelBtn");
            redPoint = button.transform.Find("RedPoint").gameObject;
            button.clickEvent.Add(new EventDelegate(OnClickUpgrade));
        }