推动Config新增
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user