quality-control/Assets/Scripts/Products/Product.cs
2024-08-18 14:44:44 +02:00

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);
}
}
}