推动Config新增

This commit is contained in:
2025-12-16 17:54:51 +08:00
parent 39a051eacf
commit 60df9a93aa
21 changed files with 427 additions and 117 deletions

View File

@@ -19,14 +19,12 @@ namespace Demo.Game
return begin;
}
private readonly List<ScriptableObject> LookAtCache = new();
[Content] public int LookAtObject;
[Content] public bool IsEnableUpdateEveryTick = false;
protected override void UpdateData(int data)
{
ScriptableObject target = LookAtCache[LookAtObject];
ScriptableObject target = GetRoot().FindWithIndex(data);
if (data != LookAtObject)
{
LookAtObject = data;
@@ -46,7 +44,6 @@ namespace Demo.Game
[Convention.RScript.Variable.Attr.Method]
public void Add(float time, ScriptableObject target)
{
LookAtCache.Add(target);
ManualAddEntry(time, LookAtCache.Count - 1, default);
}