public void InstantiateAutomation(Transform parent, Automation automationData) { _product = Object.Instantiate(_automationPresentationPrefab.gameObject, parent) .GetComponent <AutomationPresentation>(); _automation = automationData; _product.Init(automationData); _automationLogic = new AutomationLogic(_playerData, _automationsData, _product, _automation); }