diff --git a/Common/Runtime/ComponentHelper.cs b/Common/Runtime/ComponentHelper.cs index 2ed7203..5189578 100644 --- a/Common/Runtime/ComponentHelper.cs +++ b/Common/Runtime/ComponentHelper.cs @@ -1,3 +1,4 @@ +using System.Linq; using UnityEngine; namespace gay.lilyy.Common @@ -41,7 +42,7 @@ namespace gay.lilyy.Common { if (root == null) return null; - T[] components = root.GetComponentsInChildren(true); + T[] components = root.GetComponentsInChildren(true).Concat(root.GetComponents()).ToArray(); if (components.Length == 0) { return null;