EscapeShooter/My project/Assets/Project Files/Modules/Settings/Scripts/SettingsElementsGroup.cs

22 lines
457 B
C#

using UnityEngine;
namespace Watermelon
{
public class SettingsElementsGroup : MonoBehaviour
{
public bool IsGroupActive()
{
int childCount = transform.childCount;
for(int i = 0; i < childCount; i++)
{
if(transform.GetChild(i).gameObject.activeSelf)
{
return true;
}
}
return false;
}
}
}