using TMPro; using UnityEngine; using UnityEngine.UI; public class OptionsButton : MonoBehaviour { public enum SettingsTarget { Resolution, Vol_Master, Vol_SFX, Vol_Music, CharacterPattern, MapPattern, leftStickAim, lockAimDirections, ShowCardStarts, FullScreen, FreeStickAim, Vsync } public enum SettingsType { Binary, Slider, MultiOption } public SettingsTarget settingsTarget; public SettingsType settingsType; public bool currentBoolValue; public Resolution currentResolutionValue; public Optionshandler.FullScreenOption currentFullscreenValue; public float currentFloatValue; private TextMeshProUGUI text; public Slider slider; private void Awake() { text = GetComponentsInChildren(includeInactive: true)[1]; if (settingsType == SettingsType.Slider) { slider = GetComponentInChildren(includeInactive: true); slider.onValueChanged.AddListener(SliderSlide); } else { GetComponent