인벤 ui작업
This commit is contained in:
parent
5f19842b78
commit
d155285e1e
|
|
@ -25,13 +25,14 @@ public class InvenItemPrefab : MonoBehaviour
|
|||
ConsumableItem consumableItem = Statics.itemManager.box.FindConsumableItemDataId(consumableItemData.index);
|
||||
if (consumableItem != null)
|
||||
{
|
||||
this.count = 0;
|
||||
gameObject.SetActive(false);
|
||||
this.count = consumableItem.count;
|
||||
gameObject.SetActive(this.count != 0);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
this.count = consumableItem.count;
|
||||
gameObject.SetActive(true);
|
||||
this.count = 0;
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue