Esempio n. 1
0
 public void ResetUI()
 {
     Icon.sprite       = DefaultImage;
     QuantityText.text = "0";
     QuantityTextGO.SetActive(false);
     WornBarGO.SetActive(false);
     TheCanvasGroup.interactable   = false;
     TheCanvasGroup.blocksRaycasts = false;
 }
Esempio n. 2
0
 public void UpdateQuantity()
 {
     if (Item == null)
     {
         QuantityText.text = "0";
         QuantityTextGO.SetActive(false);
     }
     else
     {
         QuantityText.text = Item.Data.Quantity.ToString();
         QuantityTextGO.SetActive(true);
     }
 }
Esempio n. 3
0
 public void UpdateQuantity()
 {
     if (Item == null)
     {
         QuantityText.text = "0";
         QuantityTextGO.SetActive(false);
     }
     else
     {
         QuantityText.text = (Item.BaseData as IStackableData).Quantity.ToString();
         QuantityTextGO.SetActive(true);
     }
 }