예제 #1
0
    private IngredientPickup SpawnPickup()
    {
        IngredientPickup pickup = Instantiate(spawnablePrefab, transform.position, Quaternion.identity);

        pickup.InitialiseIngredientData(new IngredientData(ingredientType));
        return(pickup);
    }
예제 #2
0
    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();
    }