mirror of
https://github.com/nothke/quality-control.git
synced 2024-11-13 22:33:43 +00:00
17 lines
363 B
C#
17 lines
363 B
C#
using UnityEngine;
|
|
|
|
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);
|
|
}
|
|
}
|
|
} |