Read data form item database
Posted: Thu Feb 07, 2019 2:09 pm
I am trying to populate inventory UI, based on the information present in the Item DB.
Currently, I can iterate thru the DB using the following code.
foreach (var item in DialogueManager.masterDatabase.items)
{
Debug.Log (item.id + " "+ item.Name );
}
I am unable to actually read the data associated with the individual item
For e.g. inventory (bool) , TotalNumber (int) , IsItem (bool) etc.
Please let me know how I can do this.
Thanks!
Currently, I can iterate thru the DB using the following code.
foreach (var item in DialogueManager.masterDatabase.items)
{
Debug.Log (item.id + " "+ item.Name );
}
I am unable to actually read the data associated with the individual item
For e.g. inventory (bool) , TotalNumber (int) , IsItem (bool) etc.
Please let me know how I can do this.
Thanks!