using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; namespace AppUI.Util.Group { public class BtnGroupSelector : MonoBehaviour { Action onSelect; int currentIndex = -1; public void Init( string[] texts, int selectIndex, Action callback) { currentIndex = selectIndex; onSelect = callback; Render(texts); for (int i = 0; i < transform.childCount; i++) { int index = i; var btn = transform.GetChild(i) .GetComponentInChildren