private IngredientPickup SpawnPickup() { IngredientPickup pickup = Instantiate(spawnablePrefab, transform.position, Quaternion.identity); pickup.InitialiseIngredientData(new IngredientData(ingredientType)); return(pickup); }
protected override void FinishProcess() { base.FinishProcess(); IngredientData input = containedIngredients[0]; input.AppliedProcess = processToApply; IngredientPickup pickup = Instantiate(ingredientPrefab, finalProductSpawnTransform.position, finalProductSpawnTransform.rotation); pickup.InitialiseIngredientData(input); containedIngredients.Clear(); }