Exemple #1
0
 public void NoGotItem(CONSUME_TYPE type)
 {
     itemCountText.gameObject.SetActive(true);
     itemSprite.sprite  = UIManager.current.ItemSprites[(int)type];
     itemSprite.enabled = true;
     ConsumeType        = type;
     itemCount          = 1;
     itemCountText.text = string.Format("{0}", itemCount);
 }
Exemple #2
0
 public void InvenDataSet(CONSUME_TYPE type)
 {
     for (int i = 0; i < InvenRoom.Length; ++i)
     {
         if (InvenRoom[i].ConsumeType == type)
         {
             InvenRoom[i].KeepItem();
             return;
         }
         else if (InvenRoom[i].ConsumeType == CONSUME_TYPE.Empty)
         {
             InvenRoom[i].NoGotItem(type);
             return;
         }
     }
 }
Exemple #3
0
 public void ItemEat(CONSUME_TYPE type)
 {
     UIInven.InvenDataSet(type);
 }