diff --git a/Assets/UniBT/Scripts/Runtime/BuiltIn/Composite/All.cs b/Assets/UniBT/Scripts/Runtime/BuiltIn/Composite/All.cs index 6dcda90..f21de0b 100644 --- a/Assets/UniBT/Scripts/Runtime/BuiltIn/Composite/All.cs +++ b/Assets/UniBT/Scripts/Runtime/BuiltIn/Composite/All.cs @@ -6,7 +6,12 @@ namespace UniBT public class All : Composite { - private readonly List runningNodes = new List(); + private List runningNodes; + + protected override void OnAwake() + { + runningNodes = new List(); + } /// /// Update all nodes.