public void AddItemSlot() { GameObject gameObject = NGUITools.AddChild(this.gameObject, m_itemSlotPrefab); ItemSlotLoot component = gameObject.GetComponent <ItemSlotLoot>(); m_itemSlots.Add(component); component.Index = m_itemSlots.Count - 1; component.Parent = this; }
public void SelectItemSlot(ItemSlotLoot p_slot) { if (m_selectedItem != null) { m_selectedItem.SetSelected(false); } m_lootButton.isEnabled = (p_slot != null); m_lootButtonText.color = ((!(p_slot != null)) ? Color.gray : Color.white); if (p_slot != null) { p_slot.SetSelected(true); } m_selectedItem = p_slot; }
public LootDragObject(ItemSlotLoot p_slot) { m_itemSlot = p_slot; m_item = p_slot.Item; }
public void ItemRightClick(ItemSlotLoot p_slot) { SelectItemSlot(p_slot); m_lootScreen.OnLootButtonClicked(); }