2025-09-25 19:04:05 +08:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Convention;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Demo.Game
|
|
|
|
|
{
|
|
|
|
|
public class DDT : ScriptableObject
|
|
|
|
|
{
|
|
|
|
|
public static DDT Make()
|
|
|
|
|
{
|
|
|
|
|
return new GameObject().AddComponent<DDT>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<float> Datas = new();
|
|
|
|
|
|
2025-11-12 10:09:26 +08:00
|
|
|
[Convention.RScript.Variable.Attr.Method]
|
|
|
|
|
public void Add(float value)
|
|
|
|
|
{
|
|
|
|
|
Datas.Add(value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Convention.RScript.Variable.Attr.Method]
|
|
|
|
|
public void Add(int barSplitTimes, int barCount, int tickCount)
|
|
|
|
|
{
|
|
|
|
|
Datas.Add((barCount + tickCount / (float)barSplitTimes) * OneBarTime);
|
|
|
|
|
}
|
2025-09-25 19:04:05 +08:00
|
|
|
}
|
|
|
|
|
}
|