22 lines
457 B
C#
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;
|
|
}
|
|
}
|
|
}
|