private void OnCollectionDataChanged(EventData e) { Debug.Log("Collection data changed! Updating UI..."); DataSnapshot dataList = (DataSnapshot)e.Data["box_list"]; Debug.Log(dataList.GetRawJsonValue()); CollectionData collection = JsonUtility.FromJson <CollectionData>(dataList.GetRawJsonValue()); BoxList.UpdateList(collection); }