mirror of
https://github.com/nothke/quality-control.git
synced 2024-12-21 23:37:29 +00:00
More tuning
This commit is contained in:
parent
83fb2f186b
commit
475785c303
@ -16,8 +16,8 @@ MonoBehaviour:
|
||||
Quotas:
|
||||
- Type: {fileID: 11400000, guid: 6f11438f5cec6a24cb2a32fccc6244d1, type: 2}
|
||||
Quantity: 20
|
||||
MaxDefectivePercentage: 30
|
||||
TimeLimit: 120
|
||||
MaxDefectivePercentage: 80
|
||||
LevelMessage: 'Welcome, employee!
|
||||
|
||||
Please ensure the quality of our HexaTorus
|
||||
|
@ -16,8 +16,11 @@ MonoBehaviour:
|
||||
Quotas:
|
||||
- Type: {fileID: 11400000, guid: 42240b227563f074aa0dd8fee3c0cb35, type: 2}
|
||||
Quantity: 40
|
||||
MaxDefectCount: 0
|
||||
- Type: {fileID: 11400000, guid: 1e626f6e0e642b44aaeb77b6628c8be7, type: 2}
|
||||
Quantity: 10
|
||||
MaxDefectCount: 0
|
||||
TimeLimit: 180
|
||||
MaxDefectivePercentage: 60
|
||||
LevelMessage: We are pleased to announce that we have secured the capital for the
|
||||
expansion.
|
||||
SuccessMessage: Great job!
|
||||
|
@ -14,9 +14,9 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
Prefab: {fileID: 5301951847822309914, guid: d5cbaa49bd379dc49b90d9c38f02bf80, type: 3}
|
||||
normalClips:
|
||||
- {fileID: 8300000, guid: 8218c8158aaf5fd48b6b1d0c452e50ca, type: 3}
|
||||
- {fileID: 8300000, guid: 8f2502b0ea356614faad568cc2ce8d28, type: 3}
|
||||
defectiveClips:
|
||||
- {fileID: 8300000, guid: 88c1cb18e89f16a42b44301fca5b03be, type: 3}
|
||||
- {fileID: 8300000, guid: cb37dba8505a887438f4e1c8182106a0, type: 3}
|
||||
DefectProbabilities:
|
||||
- Defect: 0
|
||||
Probability: 75
|
||||
|
@ -19,8 +19,8 @@ MonoBehaviour:
|
||||
- {fileID: 8300000, guid: cb37dba8505a887438f4e1c8182106a0, type: 3}
|
||||
DefectProbabilities:
|
||||
- Defect: 0
|
||||
Probability: 50
|
||||
Probability: 75
|
||||
- Defect: 1024
|
||||
Probability: 25
|
||||
Probability: 7
|
||||
- Defect: 2048
|
||||
Probability: 25
|
||||
Probability: 18
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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}");
|
||||
|
@ -11,10 +11,12 @@ public class SlidingCrane : MonoBehaviour
|
||||
public Transform xTransform;
|
||||
public Transform yTransform;
|
||||
|
||||
|
||||
public float yRange = 10;
|
||||
public float xRange = 5;
|
||||
|
||||
[Range(0f, 1f)]
|
||||
public float xStart = 0.5f;
|
||||
|
||||
public Transform testTgt;
|
||||
public Vector3 target;
|
||||
|
||||
@ -24,15 +26,14 @@ public class SlidingCrane : MonoBehaviour
|
||||
private void Start()
|
||||
{
|
||||
target = transform.position;
|
||||
xMotion.progress = 0.5f;
|
||||
xMotion.progress = xStart;
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
{
|
||||
if (testTgt)
|
||||
target = testTgt.position;
|
||||
|
||||
|
||||
|
||||
Vector3 localTarget = transform.InverseTransformPoint(target);
|
||||
|
||||
Vector2 targetPlanar = new Vector2(localTarget.x, localTarget.z);
|
||||
|
Loading…
Reference in New Issue
Block a user