| | |
| | | using LitJson;
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | |
|
| | | /// <summary>
|
| | | /// 宝箱功能 + 获取奖励界面
|
| | |
| | | // ModelCenter.Instance.GetModel<FairySiegeActModel>()?.OnUpdateAwardInfoAction(netPack);
|
| | | // return;
|
| | | // }
|
| | | if (!commonShowAwardEvents.Contains(eventName))
|
| | | // if (!commonShowAwardEvents.Contains(eventName))
|
| | | // return;
|
| | | if (string.IsNullOrEmpty(eventName))
|
| | | {
|
| | | Debug.Log("获得物品展示 无事件名");
|
| | | return;
|
| | | }
|
| | |
|
| | | List<Item> showItems = new List<Item>();
|
| | |
|
| | | if (netPack.Exp != 0 || netPack.ExpPoint != 0)
|
| | | {
|
| | | ulong expValue = netPack.Exp + netPack.ExpPoint * (ulong)Constants.ExpPointValue;
|
| | | long expValue = netPack.Exp + netPack.ExpPoint * Constants.ExpPointValue;
|
| | | showItems.Add(new Item(GeneralDefine.expDisplayId, expValue));
|
| | | }
|
| | | if (netPack.MoneyList.Length != 0)
|
| | |
| | | var selectlistDict = ConfigParse.GetDic<int, int>(config.SelectList);
|
| | | foreach (var item in selectlistDict)
|
| | | {
|
| | | itemIDs.Add(new Item(item.Key, (ulong)item.Value));
|
| | | itemIDs.Add(new Item(item.Key, item.Value));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var itemListDict = ConfigParse.GetDic<int, int>(config.FixedItem);
|
| | | foreach (var item in itemListDict)
|
| | | {
|
| | | itemIDs.Add(new Item(item.Key, (ulong)item.Value));
|
| | | itemIDs.Add(new Item(item.Key, item.Value));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | for (int i = 0; i < arr.Count; i++)
|
| | | {
|
| | | itemIDs.Add(new Item(int.Parse(arr[i][1][0].ToString()), ulong.Parse(arr[i][1][1].ToString())));
|
| | | itemIDs.Add(new Item(int.Parse(arr[i][1][0].ToString()), long.Parse(arr[i][1][1].ToString())));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | for (int i = 0; i < arr.Count; i++)
|
| | | {
|
| | | itemIDs.Add(new Item(int.Parse(arr[i][1][0].ToString()), ulong.Parse(arr[i][1][1].ToString())));
|
| | | itemIDs.Add(new Item(int.Parse(arr[i][1][0].ToString()), long.Parse(arr[i][1][1].ToString())));
|
| | | }
|
| | | }
|
| | |
|