quality-control/Assets/Scripts/Game Schedule/LevelObjective.cs

33 lines
707 B
C#
Raw Normal View History

2024-08-18 16:42:01 +00:00
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;
2024-08-19 21:07:47 +00:00
[Range(0, 100)]
public int MaxDefectivePercentage;
2024-08-18 16:42:01 +00:00
}
public List<ProductQuota> Quotas;
public float TimeLimit;
2024-08-19 16:45:27 +00:00
[TextArea]
public string LevelMessage;
2024-08-18 16:42:01 +00:00
[TextArea]
public string SuccessMessage;
[TextArea]
public string FailureMessage;
}