using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(ScrollRect))] public class ButtonSelectionController : MonoBehaviour { [SerializeField] private float m_lerpTime; private ScrollRect m_scrollRect; private Button[] m_buttons; private int m_index; private float m_verticalPosition; private bool m_up; private bool m_down; public void OnEnable() { m_scrollRect = GetComponent(); m_buttons = GetComponentsInChildren