| | |
| | | using UnityEngine;
|
| | | using System;
|
| | | //心法科技
|
| | | public class SkillsInformation
|
| | | public class SkillsInformation
|
| | | {
|
| | | public int id;//单位数id
|
| | | public int SkillID;//技能ID
|
| | |
| | |
|
| | | public class PlayerMethodData : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public Dictionary<int, SkillsInformation> _DicSkill = new Dictionary<int, SkillsInformation>();//存储心法
|
| | | public Dictionary<int, SkillsInformation> _DicSkill = new Dictionary<int, SkillsInformation>();//存储心法
|
| | |
|
| | | public Dictionary<int, Redpoint> MethodRedPointDic = new Dictionary<int, Redpoint>();//心法列表红点
|
| | | public Dictionary<int, Redpoint> MethodRedPointBtnDic = new Dictionary<int, Redpoint>();//心法按钮红点
|
| | |
| | | {
|
| | | string str = Config.Instance.Get<FuncConfigConfig>("FamilyTechNeedLV").Numerical1;
|
| | | MethodDataNeedLVDic = ConfigParse.GetDic<int, int>(str);
|
| | | |
| | | |
| | |
|
| | |
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | |
| | |
|
| | | _ContributionNumber = 0;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | private const int RedPoint_key1= 1070101;//心法红点
|
| | | private const int RedPoint_key1 = 1070101;//心法红点
|
| | | private Redpoint redPointStre1 = new Redpoint(MainRedDot.FAIRY_REDPOINT_KEY2, RedPoint_key1);
|
| | | public Redpoint fairyHeartRedpoint { get { return redPointStre1; } }
|
| | | private const int RedPoint_key2 = 1070104;//仙盟大厅红点
|
| | | private Redpoint redPointStre2 = new Redpoint(MainRedDot.FAIRY_REDPOINT_KEY2, RedPoint_key2);
|
| | | private void FairyAuMethodDic()//仙盟心法列表红点
|
| | | {
|
| | | if ( MethodRedPointDic.Count!=0)
|
| | | if (MethodRedPointDic.Count != 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | private void FairyAuMethodRedPoint()//仙盟心法红点
|
| | | private void FairyAuMethodRedPoint()//仙盟心法红点
|
| | | {
|
| | | if (!fairyModel.fairyMethodToOpen || MethodRedPointBtnDic.Count == 0)
|
| | | if (MethodRedPointBtnDic.Count == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | MethodRedPointBtnDic[key].state = RedPointState.None;
|
| | | }
|
| | |
|
| | | if (!fairyModel.fairyMethodToOpen)
|
| | | {
|
| | | return;
|
| | | }
|
| | | foreach (var key in _DicSkill.Keys)
|
| | | {
|
| | | if (MethodDataNeedLVDic.ContainsKey(_DicSkill[key].id) && PlayerDatas.Instance.baseData.LV >= MethodDataNeedLVDic[_DicSkill[key].id])
|
| | |
| | | var familyTechConfig = Config.Instance.Get<FamilyTechConfig>(_DicSkill[key].SkillID + 1);
|
| | | if (_DicSkill[key].SkillLV > 0)
|
| | | {
|
| | | |
| | |
|
| | | if (familyTechConfig == null)
|
| | | {
|
| | | continue;
|
| | |
| | | {
|
| | | for (int i = 0; i < info.TechCnt; i++)
|
| | | {
|
| | | |
| | |
|
| | | if (!_DicSkill.ContainsKey(info.TechInfoList[i].TechID))
|
| | | {
|
| | | |
| | |
|
| | | SkillsInformation _skill = new SkillsInformation();
|
| | | _skill.id = info.TechInfoList[i].TechID;
|
| | | _skill.SkillID = Skill_ID(info.TechInfoList[i].TechID, info.TechInfoList[i].TechLV);
|
| | | _skill.SkillLV = info.TechInfoList[i].TechLV;
|
| | | _DicSkill.Add(info.TechInfoList[i].TechID, _skill);
|
| | | |
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | _DicSkill[info.TechInfoList[i].TechID].SkillLV = info.TechInfoList[i].TechLV;
|
| | | if (EventHA504 != null)
|
| | | EventHA504();
|
| | | |
| | |
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | FairyAuMethodRedPoint();
|
| | | FairyAuMethodDic();
|
| | | }
|
| | |
| | | Event_CepaContribution();
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | }
|