// Token: 0x060008F7 RID: 2295 RVA: 0x000B6E04 File Offset: 0x000B5004 public void FontRefresh() { for (int i = this.rewardWorkingList.Count - 1; i >= 0; i--) { RewardNode rewardNode = this.rewardWorkingList[i]; if (rewardNode != null) { rewardNode.FontRefresh(); } } }
// Token: 0x060008F6 RID: 2294 RVA: 0x000B6D98 File Offset: 0x000B4F98 public void Clear() { for (int i = this.rewardWorkingList.Count - 1; i >= 0; i--) { RewardNode rewardNode = this.rewardWorkingList[i]; this.rewardWorkingList.RemoveAt(i); rewardNode.SetActive(false, true); this.rewardFreeList.Add(rewardNode); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 1, 0); } }
// Token: 0x060008F5 RID: 2293 RVA: 0x000B6D28 File Offset: 0x000B4F28 public void Update(float deltaTime) { for (int i = this.rewardWorkingList.Count - 1; i >= 0; i--) { if (!this.rewardWorkingList[i].Update(deltaTime)) { RewardNode rewardNode = this.rewardWorkingList[i]; this.rewardWorkingList.RemoveAt(i); rewardNode.SetActive(false, false); this.rewardFreeList.Add(rewardNode); } } }
// Token: 0x060008F8 RID: 2296 RVA: 0x000B6E48 File Offset: 0x000B5048 public void addReward(ushort itemID, Vector3 startPos, Vector3 endPos, byte itemRank = 0) { RewardNode rewardNode; if (this.rewardFreeList.Count > 0) { int index = this.rewardFreeList.Count - 1; rewardNode = this.rewardFreeList[index]; this.rewardFreeList.RemoveAt(index); } else { rewardNode = new RewardNode(this.rewardBundle, this.rootLayer); } rewardNode.InitNode(itemID, startPos, endPos, itemRank); this.rewardWorkingList.Add(rewardNode); }