using System; using TMPro; using UnityEngine; using UnityEngine.UI; namespace Fort23.Mono { public static class UIHelper { public static void IsGray(this Transform transform, bool isGray = true) { if (isGray) { Gray(transform); } else { RecoverColor(transform); } } public static void Gray(this Transform transform, bool enableButton = true) { if (transform.GetComponent