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); }
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; } } }
public void ItemEat(CONSUME_TYPE type) { UIInven.InvenDataSet(type); }