// Called when the button is pressed, set up on the button component in the inspector public void OnPress() { if (option == null) { Debug.LogError("Dialogue Button pressed while not having an associated DialogueOption"); return; } option.OnSelect(); }