1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- // using System.Collections.Generic;
- // using UnityEngine;
- // using System;
- // namespace GFGGame
- // {
- // public class LuckyBoxBonusDataCache
- // {
- // private static int _currentBoxId;
- // private static int _currentSelectId;
- // public static int currentBoxId
- // {
- // get
- // {
- // return _currentBoxId;
- // }
- // set
- // {
- // if (_currentBoxId != value)
- // {
- // _currentBoxId = value;
- // InitData(_currentBoxId);
- // }
- // }
- // }
- // public static string probShow;
- // private static List<LuckyBoxBonusData> _showList;
- // public static int GetOwnedCount()
- // {
- // int count = 0;
- // foreach (LuckyBoxBonusData luckyBoxBonusData in _showList)
- // {
- // foreach (ItemData itemData in luckyBoxBonusData.itemList)
- // {
- // if (ItemDataManager.GetItemNum(itemData.id) > 0)
- // {
- // count++;
- // }
- // }
- // }
- // return count;
- // }
- // public static List<LuckyBoxBonusData> GetCurrentShowList()
- // {
- // return _showList.GetRange(0, _showList.Count);
- // }
- // private static void InitData(int boxId)
- // {
- // LuckyBoxCfg luckyBoxCfg = LuckyBoxCfgArray.Instance.GetCfg(boxId);
- // probShow = luckyBoxCfg.probShow;
- // _showList = GetBonusDataList(luckyBoxCfg.bonusShowArr);
- // }
- // private static List<LuckyBoxBonusData> GetBonusDataList(int[] idsList)
- // {
- // List<LuckyBoxBonusData> list = new List<LuckyBoxBonusData>();
- // foreach (int id in idsList)
- // {
- // BonusListCfg bonusListCfg = BonusListCfgArray.Instance.GetCfg(id);
- // LuckyBoxBonusData luckyBoxBonusData = new LuckyBoxBonusData();
- // luckyBoxBonusData.id = id;
- // luckyBoxBonusData.name = bonusListCfg.name;
- // luckyBoxBonusData.itemList = ItemUtil.CreateItemDataList(bonusListCfg.bonusListArr);
- // list.Add(luckyBoxBonusData);
- // }
- // return list;
- // }
- // }
- // }
|