예제 #1
0
        public override void Awake()
        {
            base.Awake();
            var t = controller.transform;

            controller.backButton = t.GetComponent <UIButton>("Edge/TopLeft/CancelBtn");

            VigorLabel       = t.GetComponent <UILabel>("Edge/BtnRoot/BattleBtn/VigorLabel");
            EnterVigor       = (int)Data.NewGameConfigTemplateManager.Instance.GetGameConfigValue("InfiniteCompeteCost");
            VigorLabel.text  = EnterVigor.ToString();
            VigorLabel.color = EnterVigor > BalanceResourceUtil.GetUserVigor() ? LT.Hotfix.Utility.ColorUtility.RedColor : LT.Hotfix.Utility.ColorUtility.GreenColor;

            SelfLabel    = t.GetComponent <UILabel>("Edge/RankInfoRoot/SelfLabel");
            TheFastLabel = t.GetComponent <UILabel>("Edge/RankInfoRoot/TheFastLabel");
            TimeLabel    = t.GetComponent <UILabel>("Edge/BtnRoot/TimeLabel");

            Scroll = t.GetMonoILRComponent <LTUltimateTrialCompeteScroll>("Edge/Content/ScrollView/Placehodler/Grid");

            Item = t.GetMonoILRComponent <LTPassTeamInfoItem>("Edge/TheFast");

            t.GetComponent <UIButton>("Edge/TopRight/Notice").onClick.Add(new EventDelegate(OnRuleBtnClick));
            t.GetComponent <UIButton>("Edge/BtnRoot/RankBtn").onClick.Add(new EventDelegate(OnRankBtnClick));
            t.GetComponent <UIButton>("Edge/BtnRoot/RewardBtn").onClick.Add(new EventDelegate(OnRewardBtnClick));

            BtnObj = t.Find("Edge/BtnRoot/BattleBtn").gameObject;
            BtnObj.transform.GetComponent <UIButton>().onClick.Add(new EventDelegate(OnChallengeBtnClick));
            BtnLockObj = t.Find("Edge/BtnRoot/LockLable").gameObject;
        }
예제 #2
0
        public override void Awake()
        {
            base.Awake();
            UIButton backBtn = controller.transform.Find("BG/Top/CloseBtn").GetComponent <UIButton>();

            controller.backButton = backBtn;
            TheFast = controller.transform.GetMonoILRComponent <LTPassTeamInfoItem>("Content/TheFast");
            TheNear = controller.transform.GetMonoILRComponent <LTPassTeamInfoItem>("Content/TheNear");
        }