mirror of
https://github.com/nothke/quality-control.git
synced 2025-09-01 08:03:43 +00:00
Messing with meshes and object spawning
This commit is contained in:
@@ -4,6 +4,7 @@ using UnityEngine;
|
||||
|
||||
public class Converter: MonoBehaviour, IResetable
|
||||
{
|
||||
public ProductSpawner Spawner;
|
||||
public List<Product> inputProducts;
|
||||
|
||||
public ProductType expectedReagent;
|
||||
@@ -61,7 +62,7 @@ public class Converter: MonoBehaviour, IResetable
|
||||
|
||||
if (inputProducts[0].Type == expectedReagent)
|
||||
{
|
||||
ProductType.SpawnProduct(conversionProduct, outputPoint);
|
||||
Spawner.SpawnProduct(conversionProduct);
|
||||
inputProducts.RemoveAt(0);
|
||||
Destroy(currentProduct);
|
||||
}
|
||||
|
Reference in New Issue
Block a user