Exemplo n.º 1
0
 public void SetItem(GameItemInventory inventory, GameItemInventory.eItemType type, int count)
 {
     m_inven = inventory;
     m_type = type;
     m_count = count;
     m_countLabel.text = string.Format("{0:00}", m_count);
     m_icon.sprite2D = m_inven.GetItemIconSprite(m_type);
     //m_icon.width = (int)m_icon.sprite2D.rect.width;
     //m_icon.height = (int)m_icon.sprite2D.rect.height;
 }
Exemplo n.º 2
0
 public void SetSlot(GameItemInventory inventory)
 {
     m_inven = inventory;
     Unselect();
 }