mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-31 15:43:44 +00:00
Reworking item spawn, adding item conversion.
This commit is contained in:
@@ -2,5 +2,16 @@
|
||||
|
||||
public class Product : MonoBehaviour
|
||||
{
|
||||
public ProductType Type;
|
||||
public DefectType Defect;
|
||||
|
||||
public void ApplyDefect(DefectType defectType)
|
||||
{
|
||||
Defect = defectType;
|
||||
|
||||
foreach (var visualizer in GetComponents<IDefectVisualizer>())
|
||||
{
|
||||
visualizer.VisualizeDefect(defectType);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user