mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-31 07:43:42 +00:00
Scoring and stuff.
This commit is contained in:
31
Assets/Scripts/Game Schedule/LevelObjective.cs
Normal file
31
Assets/Scripts/Game Schedule/LevelObjective.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
[CreateAssetMenu(fileName = "New Level Objective", menuName = "Data/Level Objective", order = 0)]
|
||||
public class LevelObjective : ScriptableObject
|
||||
{
|
||||
public StagingManager.StageEnum Stage;
|
||||
|
||||
[Serializable]
|
||||
public struct ProductQuota
|
||||
{
|
||||
public ProductType Type;
|
||||
public int Quantity;
|
||||
}
|
||||
|
||||
public List<ProductQuota> Quotas;
|
||||
|
||||
public float TimeLimit;
|
||||
|
||||
[Range(0, 100)]
|
||||
public int MaxDefectivePercentage;
|
||||
|
||||
[TextArea]
|
||||
public string SuccessMessage;
|
||||
|
||||
[TextArea]
|
||||
public string FailureMessage;
|
||||
|
||||
}
|
Reference in New Issue
Block a user