Compare commits
No commits in common. "1111f0d7a07020ec50ee9031c2948ea521198a97" and "e413f16daf09c214ef79fa7b6456f7d6748ee6af" have entirely different histories.
1111f0d7a0
...
e413f16daf
6 changed files with 1 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
using System.Linq;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace gay.lilyy.Common
|
namespace gay.lilyy.Common
|
||||||
|
|
@ -42,7 +41,7 @@ namespace gay.lilyy.Common
|
||||||
{
|
{
|
||||||
if (root == null) return null;
|
if (root == null) return null;
|
||||||
|
|
||||||
T[] components = root.GetComponentsInChildren<T>(true).Concat(root.GetComponents<T>()).ToArray();
|
T[] components = root.GetComponentsInChildren<T>(true);
|
||||||
if (components.Length == 0)
|
if (components.Length == 0)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue