using System.Collections; using System.Collections.Generic; using UnityEngine; namespace GFGGame { public class LuckyBoxDataManager : SingletonBase { private List _rewardsList;//当前奖励,每次抽奖后刷新 private Dictionary _firstRewardsList = new Dictionary();//首次获得的奖励 public int[] luckyBoxIds = new int[] { 1, 2, 3 };//奖池列表 public int startTime = 1635157620; public int endTime = 1704038400; public List RewardList { get { return _rewardsList; } set { _rewardsList = value; } } public Dictionary FirstRewardList { get { return _firstRewardsList; } set { _firstRewardsList = value; } } //获取首次获得的服装的列表 public List GetFirstClothingList() { ItemData[] cardArray = new ItemData[LuckyBoxDataManager.Instance.FirstRewardList.Count]; LuckyBoxDataManager.Instance.FirstRewardList.Values.CopyTo(cardArray, 0); List cardList = new List(cardArray); return cardList; } } }