using System.Collections; using System.Collections.Generic; using UnityEngine; public class InventoryModelComponent : ModelComponent { [SerializeField] private ShopObject shop; protected override void CreateModel() { Debug.Assert(shop != null,"Shop model initial object never assigned!",this); model = new SellModel(shop,inventory.Inventory); } }