private void SetupGetItems() { itemPutter = GetComponent(typeof(IGetItems)) as IGetItems; if (itemPutter == null) throw new MissingComponentException("This object requires a component which implements " + typeof(IGetItems) + " attached."); }
private void SetupGetItems() { itemPutter = GetComponent(typeof(IGetItems)) as IGetItems; if (itemPutter == null) { throw new MissingComponentException("This object requires a component which implements " + typeof(IGetItems) + " attached."); } }
public ItemsController(ILogger <ItemsController> logger, IGetItems IGetItems, IDeleteCategory IDeleteCategory) { _logger = logger; _IGetItems = IGetItems; _IDeleteCategory = IDeleteCategory; }