/// <summary> /// Perform action on all the items contained in the shop /// </summary> /// <param name="_action"></param> public void DoOnAllItems(Action <Item> _action) { if (_action == null) { return; } for (int i = 0; i < categories.Count; i++) { CategoryData category = categories[i]; if (category != null) { category.DoOnAllItems(_action); } } }