public class MenuController : MonoBehaviour
{
[SerializeField] private InputReader _inputReader;
private void OnEnable()
_inputReader.pauseEvent += OpenMenu;
/// </summary>
private IEnumerator SelectDefault()
yield return new WaitForEndOfFrame(); // Necessary wait otherwise the highlight won't show up
yield return new WaitForSeconds(.03f); // Necessary wait otherwise the highlight won't show up
if (_defaultSelection != null)
EventSystem.current.SetSelectedGameObject(_defaultSelection);