/// <summary> /// Method to handle the enter key /// </summary> public void EnterClicked() { switch (indexCurrentButton) { case (0): MenuPanel.SetActive(false); break; case (1): ButtonHandlerScript.BackToMenu(); break; case (2): ButtonHandlerScript.QuitApp(); break; default: Debug.LogError("Error with INDEX CURRENT BUTTON / " + indexCurrentButton); break; } }