private void Send_Use_RareRandomItem() { this.m_bButtonOk = true; this.m_btUseBoxItem.Hide(true); this.m_nTime = (this.m_nItemChangeTime = Environment.TickCount); this.m_bCompleted = false; this.m_nArrayIndex = 0; if (this.m_eItemMall_BoxType == eITEMMALL_BOXTRADE_TYPE.ITEMMALL_TRADETYPE_GETBOX) { Protocol_Item_Box.On_Sead_Box_Use_Random(this.m_lMainBoxItem); } if (this.m_goBoxOpenEffect != null) { this.m_goBoxOpenEffect.SetActive(false); this.m_goBoxOpenEffect.SetActive(true); } }
public static void Item_Box_Random_Show(ITEM a_cItem) { if (a_cItem != null) { List <Protocol_Item_Box.Roulette_Item> list = new List <Protocol_Item_Box.Roulette_Item>(); Protocol_Item_Box.Roulette_Item item = default(Protocol_Item_Box.Roulette_Item); ITEMINFO itemInfo = NrTSingleton <ItemManager> .Instance.GetItemInfo(a_cItem.m_nItemUnique); ITEM_BOX_GROUP iTEM_BOX_GROUP = null; if (itemInfo.IsItemATB(65536L)) { iTEM_BOX_GROUP = NrTSingleton <ItemManager> .Instance.GetBoxGroup(itemInfo.m_nItemUnique); if (iTEM_BOX_GROUP == null) { return; } } for (int i = 0; i < 12; i++) { int num; int num2; if (iTEM_BOX_GROUP != null) { num = iTEM_BOX_GROUP.i32GroupItemUnique[i]; num2 = iTEM_BOX_GROUP.i32GroupItemNum[i]; } else { num = itemInfo.m_nBoxItemUnique[i]; num2 = itemInfo.m_nBoxItemNumber[i]; } if (num > 0) { item.m_nItemUnique = num; item.m_strText = NrTSingleton <UIDataManager> .Instance.GetString(num2.ToString(), " ", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("442")); list.Add(item); } } Protocol_Item_Box.Roulette_Show(a_cItem.m_nItemUnique, new Action <object>(Protocol_Item_Box.On_Sead_Box_Use_Random), a_cItem, list.ToArray()); } }