推进中, 解析存在错误
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Convention;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Demo.Game
|
||||
{
|
||||
public class DDT : ScriptableObject
|
||||
public class DDT : ScriptableObject, IEnumerable<float>
|
||||
{
|
||||
public static DDT Make()
|
||||
{
|
||||
@@ -24,5 +25,23 @@ namespace Demo.Game
|
||||
{
|
||||
Datas.Add((barCount + tickCount / (float)barSplitTimes) * OneBarTime);
|
||||
}
|
||||
|
||||
[Convention.RScript.Variable.Attr.Method]
|
||||
public float At(int index)
|
||||
{
|
||||
return Datas[index];
|
||||
}
|
||||
|
||||
public IEnumerator<float> GetEnumerator()
|
||||
{
|
||||
return ((IEnumerable<float>)Datas).GetEnumerator();
|
||||
}
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return ((IEnumerable)Datas).GetEnumerator();
|
||||
}
|
||||
|
||||
public int Count => Datas.Count;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user