using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// This is an item factory of item factories, simply put. Allows you to combine all sorts of factories to populate /// just one inventory with different types and levels of items. /// [CreateAssetMenu]//Allows creating ViewConfig objects in Assets -> Create menu in the Unity Editor public class MultiItemFactory : ItemFactory { public ItemFactory[] ItemFactories; public override void PopulateModel(ShopModel model) { foreach (var factory in ItemFactories) { factory.PopulateModel(model); } } }