MVC shop project for software architecture, in Unity.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
656 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 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.
/// </summary>
[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);
}
}
}