32 lines
845 B
C#
32 lines
845 B
C#
using Sirenix.OdinInspector;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "ProgressBarData", menuName = "ScriptableObjects/ProgressBarData")]
|
|
public sealed class ProgressBarData : ScriptableObject
|
|
{
|
|
/// <summary>
|
|
/// 单段间隔增长数据配置
|
|
/// </summary>
|
|
[Serializable]
|
|
public struct ProgressData
|
|
{
|
|
[LabelText("目标进度")]
|
|
public float Target;
|
|
|
|
[LabelText("最小增长间隔")]
|
|
public float MinInterval;
|
|
[LabelText("最大增长间隔")]
|
|
public float MaxInterval;
|
|
|
|
[LabelText("最小增长数值")]
|
|
public float MinAddValue;
|
|
[LabelText("最大增长数值")]
|
|
public float MaxAddValue;
|
|
}
|
|
|
|
public List<ProgressData> ListProgressDatas = new();
|
|
}
|