public void DailyMenu() { dialogCanvas.SetActive(false); var choices = inkManager.GetChoices(); var choiceNames = new List <string> (); foreach (var choice in choices) { choiceNames.Add(choice.text); if (choice.text.ToLower().Equals("continue")) { inkManager.Continue(choice.index); dialogCanvas.SetActive(true); return; } } int childCount = dailyMenuCanvas.transform.childCount; for (int i = childCount; i > 0; i--) { var button = dailyMenuCanvas.transform.GetChild(i - 1).gameObject; button.SetActive(choiceNames.Contains(button.name)); if (button.name.Equals("Note")) { eventSystem.firstSelectedGameObject = button.gameObject; } } dailyMenuCanvas.SetActive(true); eventSystem.SetSelectedGameObject(eventSystem.firstSelectedGameObject); }