mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-09 07:13:42 +00:00
More tuning
This commit is contained in:
@@ -13,14 +13,13 @@ public class LevelObjective : ScriptableObject
|
||||
{
|
||||
public ProductType Type;
|
||||
public int Quantity;
|
||||
[Range(0, 100)]
|
||||
public int MaxDefectivePercentage;
|
||||
}
|
||||
|
||||
public List<ProductQuota> Quotas;
|
||||
|
||||
public float TimeLimit;
|
||||
|
||||
[Range(0, 100)]
|
||||
public int MaxDefectivePercentage;
|
||||
|
||||
[TextArea]
|
||||
public string LevelMessage;
|
||||
|
@@ -169,7 +169,7 @@ public class Scoreboard: MonoBehaviour
|
||||
|
||||
Debug.Log($"{quota.Type.name}: {TotalCount(quota.Type)}/{quota.Quantity}");
|
||||
|
||||
if (CurrentObjective.MaxDefectivePercentage < DefectPercentage(quota.Type))
|
||||
if (quota.MaxDefectivePercentage < DefectPercentage(quota.Type))
|
||||
{
|
||||
success = false;
|
||||
Debug.LogError($"Too many broken {quota.Type.name}");
|
||||
|
Reference in New Issue
Block a user