| | |
| | | RefreshSkinAttr();
|
| | | UpdateSkinRedpoint();
|
| | | OnSkinUpdateEvent?.Invoke();
|
| | |
|
| | | if (DTC0403_tagPlayerLoginLoadOK.finishedLogin && netPack.HorseSkinList[0].Star == 0)
|
| | | {
|
| | | UIManager.Instance.OpenWindow<HorseSkinGetWin>(netPack.HorseSkinList[0].HorseSkinID);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | #region 红点
|
| | |
| | |
|
| | | public Dictionary<int, long> GetAttrBySkinID(HorseSkinConfig config)
|
| | | {
|
| | | skinAttrDic.Clear();
|
| | | Dictionary<int, long> tmpDict = new Dictionary<int, long>();
|
| | |
|
| | | if (!config.InitAttrValueList.IsNullOrEmpty())
|
| | | {
|
| | | for (int i = 0; i < config.AttrIDList.Length; i++)
|
| | | {
|
| | | if (!skinAttrDic.ContainsKey(config.AttrIDList[i]))
|
| | | if (!tmpDict.ContainsKey(config.AttrIDList[i]))
|
| | | {
|
| | | skinAttrDic[config.AttrIDList[i]] = 0;
|
| | | tmpDict[config.AttrIDList[i]] = 0;
|
| | | }
|
| | | skinAttrDic[config.AttrIDList[i]] += config.InitAttrValueList[i];
|
| | | tmpDict[config.AttrIDList[i]] += config.InitAttrValueList[i];
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | for (int i = 0; i < config.AttrIDList.Length; i++)
|
| | | {
|
| | | if (!skinAttrDic.ContainsKey(config.AttrIDList[i]))
|
| | | if (!tmpDict.ContainsKey(config.AttrIDList[i]))
|
| | | {
|
| | | skinAttrDic[config.AttrIDList[i]] = 0;
|
| | | tmpDict[config.AttrIDList[i]] = 0;
|
| | | }
|
| | | skinAttrDic[config.AttrIDList[i]] += config.AttrPerStarAddList[i] * star;
|
| | | tmpDict[config.AttrIDList[i]] += config.AttrPerStarAddList[i] * star;
|
| | | }
|
| | | }
|
| | | return skinAttrDic;
|
| | | return tmpDict;
|
| | | }
|
| | |
|
| | | public HorseSkin GetSkinData(int skinID)
|