Esempio n. 1
0
 public void ResetInfo(MeridiansPanel myParent)
 {
     this.myParent = myParent;
     Init();
     CurrentAddNumber        = 0;
     this.AtbIcon.spriteName = myEffectData.EffectRes;
     StbLabel.SetText(LanguageTextManager.GetString(myEffectData.IDS));
     AddStbNumberLabel.SetText(CurrentAddNumber);
 }
Esempio n. 2
0
        }                                         //本功夫面板是否解锁


        public void InitPanel(MeridiansPanel myParent)
        {
            playerKongfuData = myParent.PlayerMeridiansDataManager.GetKonfuData(MyKonfuLevel);
            MyParent         = myParent;
            int MyMinMeridiansID = 100;

            for (int i = 0; i < SingleMeridiansBtnList.Length; i++)
            {
                int meridiansID = int.Parse(playerKongfuData.MeridiansList[i]);
                SingleMeridiansBtnList[i].Init(meridiansID, this);
                MyMinMeridiansID = MyMinMeridiansID < meridiansID ? MyMinMeridiansID : meridiansID;
            }
            transform.localPosition = new Vector3(850 * PanelPositionID, 0, 0);
            IsUnlock = MyMinMeridiansID <= PlayerManager.Instance.FindHeroDataModel().PlayerValues.PLAYER_FIELD_MERIDIANS_LEVEL + 1;
            //TraceUtil.Log("SetDragPanelIsUnlock:"+IsUnlock);
        }
Esempio n. 3
0
        public void Show(MeridiansPanel myParent)
        {
            int currentMeridiansLv = PlayerManager.Instance.FindHeroDataModel().PlayerValues.PLAYER_FIELD_MERIDIANS_LEVEL;
            var currentData        = myParent.PlayerMeridiansDataManager.playerMeridiansDataBase.PlayermeridiansDataList.Where(P => P.MeridiansLevel <= currentMeridiansLv);

            MeridiansAtbList.ApplyAllItem(P => P.ResetInfo(myParent));
            foreach (var child in currentData)
            {
                if (child.MeridiansLevel == 0)
                {
                    continue;
                }
                EffectData addEffect = ItemDataManager.Instance.EffectDatas._effects.First(P => P.m_SzName == child.EffectAdd.Split('+')[0]);
                MeridiansAtbList.ApplyAllItem(P => P.AddNumber(addEffect, int.Parse(child.EffectAdd.Split('+')[1])));
            }
        }
Esempio n. 4
0
 public void InitMySelf(MeridiansPanel MyParent)
 {
     this.MyParent = MyParent;
 }