using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class TabUI : MonoBehaviour { public TabUIElement[] elements; // Start is called before the first frame update void Start() { for(int i =0; i < elements.Length; i++){ int index = i; elements[i].tabElement.GetComponent