From ef6836f7e7bab380a1fc52db5b02bbf9c0cfdfc0 Mon Sep 17 00:00:00 2001 From: yoshidan Date: Sun, 7 Feb 2021 19:27:33 +0900 Subject: [PATCH] fix NPE --- Assets/UniBT/Scripts/Runtime/BuiltIn/Composite/All.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.