Exemplo n.º 1
0
        private void PlayUpFx()
        {
            Data.ProficiencyUpTemplate data = new Data.ProficiencyUpTemplate(CurUpData, NextUpData);
            MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, LTPartnerProficiencyDesc.GetDesc(data));

            for (int i = 0; i < SelectObjList.Count; i++)
            {
                if ((int)CurType == i + 1)
                {
                    var comp = SelectObjList[i].GetComponent <ParticleSystemUIComponent>();

                    if (comp != null)
                    {
                        comp.Play();
                    }
                }
            }
        }
Exemplo n.º 2
0
        public override void Awake()
        {
            base.Awake();
            LevelLabelList = new List <UILabel>();
            LevelLabelList.Add(mDMono.transform.GetComponent <UILabel>("1/Label"));
            LevelLabelList.Add(mDMono.transform.GetComponent <UILabel>("2/Label"));
            LevelLabelList.Add(mDMono.transform.GetComponent <UILabel>("3/Label"));
            LevelLabelList.Add(mDMono.transform.GetComponent <UILabel>("4/Label"));
            LevelLabelList.Add(mDMono.transform.GetComponent <UILabel>("5/Label"));
            SelectObjList = new List <GameObject>();
            SelectObjList.Add(mDMono.transform.Find("1/SelectBG").gameObject);
            SelectObjList.Add(mDMono.transform.Find("2/SelectBG").gameObject);
            SelectObjList.Add(mDMono.transform.Find("3/SelectBG").gameObject);
            SelectObjList.Add(mDMono.transform.Find("4/SelectBG").gameObject);
            SelectObjList.Add(mDMono.transform.Find("5/SelectBG").gameObject);
            CostObj      = mDMono.transform.Find("RequiredItems").gameObject;
            CostIconList = new List <UISprite>();
            CostIconList.Add(mDMono.transform.GetComponent <UISprite>("RequiredItems/Item1"));
            CostIconList.Add(mDMono.transform.GetComponent <UISprite>("RequiredItems/Item2"));
            CostLabelList = new List <UILabel>();
            CostLabelList.Add(mDMono.transform.GetComponent <UILabel>("RequiredItems/NumLabel1"));
            CostLabelList.Add(mDMono.transform.GetComponent <UILabel>("RequiredItems/NumLabel2"));
            ProficiencyDescView = mDMono.transform.parent.parent.GetMonoILRComponent <LTPartnerProficiencyDesc>("ProficiencyUpDesc");
            TipLabel            = mDMono.transform.GetComponent <UILabel>("RequiredItems/Tip");
            UpBtn         = mDMono.transform.GetComponent <UIButton>("ProficiencyUpBtn");
            UpSprite      = mDMono.transform.GetComponent <UISprite>("ProficiencyUpBtn/Sprite");
            TipLabel.text = string.Format("{0}:", EB.Localizer.GetString("ID_uifont_in_LTLegionManagerMenu_Label_4"));
            CurType       = Hotfix_LT.Data.ProficiencyType.Control;

            mDMono.transform.GetComponent <UIButton>("1/AllRound").onClick.Add(new EventDelegate(() => OnProficiencyItemClick(mDMono.transform.GetComponent <UIButton>("1/AllRound"))));
            mDMono.transform.GetComponent <UIButton>("2/Control").onClick.Add(new EventDelegate(() => OnProficiencyItemClick(mDMono.transform.GetComponent <UIButton>("2/Control"))));
            mDMono.transform.GetComponent <UIButton>("3/Strong").onClick.Add(new EventDelegate(() => OnProficiencyItemClick(mDMono.transform.GetComponent <UIButton>("3/Strong"))));
            mDMono.transform.GetComponent <UIButton>("4/Rage").onClick.Add(new EventDelegate(() => OnProficiencyItemClick(mDMono.transform.GetComponent <UIButton>("4/Rage"))));
            mDMono.transform.GetComponent <UIButton>("5/Absorbed").onClick.Add(new EventDelegate(() => OnProficiencyItemClick(mDMono.transform.GetComponent <UIButton>("5/Absorbed"))));

            mDMono.transform.GetComponent <ConsecutiveClickCoolTrigger>("ProficiencyUpBtn").clickEvent.Add(new EventDelegate(OnProficiencyUpBtnClick));
        }