private void Awake()
 {
     if (cartContent != null)
     {
         handler = cartContent.GetComponent <WorldMarketCartGridUI>();
     }
 }
Beispiel #2
0
 public void Decrease()
 {
     count--;
     if (count == 0)
     {
         if (transform.parent == null)
         {
             return;
         }
         WorldMarketCartGridUI gridHandler = transform.parent.GetComponent <WorldMarketCartGridUI>();
         if (gridHandler != null)
         {
             Debug.Log("removing" + this_item_id);
             gridHandler.RemoveFromCart(this_item_id);
         }
     }
     else
     {
         inputCount.text = System.Convert.ToString(count);
         textCost.text   = "$" + Convert.ToString(price);
     }
 }