using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using System; public class SettingsNavigation : MonoBehaviour { public GameObject TabContent_Parent; //4 total Main tabs in the Settings UI // public GameObject Gameplay_Content; public GameObject Controls_Content; public GameObject GraphicsAudio_Content; // public GameObject Controller_Content; public GameObject Language_Content; public GameObject PrivacySocials_Content; public Color ButtonSelected_Color = new Color(0.149f, 0.682f, 0.373f); // Color for "#26AE5F" public Color WhiteColor = new Color(1f, 1f, 1f); // Color for "#FFFFFF", or White //Controls Navigation public GameObject[] ControlsNavigation; //0. Controller Button, 1. Controller GameObject, 2. Mobile Button, 3. Mobile GameObject, 4. Save button, 5. Reset button // Assuming you have multiple buttons as child objects of this GameObject private Button[] settings_navigation_buttons; void PlayClickAudio(){ // audioSource.Play(); } void OnEnable(){ HandleControlSettings(); settings_navigation_buttons = GetComponentsInChildren