Second commit

This commit is contained in:
ThomasCharester committed 2026-09-20 15:26:03 +03:00
commit 36840f3ad4
999 files changed
+61364

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
//
// This file is part of the Tremble package by Tiny Goose.
// Copyright (c) 2024-2026 TinyGoose Ltd., All Rights Reserved.
//
using System;
using UnityEngine;
namespace TinyGoose.Tremble
{
public static class GameObjectUtil
{
public static GameObject Find_Recursive(this GameObject go, string findName)
{
if (go.name.EqualsInvariant(findName, caseSensitive: true))
return go;
for (int i = 0; i < go.transform.childCount; i++)
{
GameObject inner = Find_Recursive(go.transform.GetChild(i).gameObject, findName);
if (inner)
return inner;
}
return null;
}
}
}