private void SetResponseButton(GUIButton button, Response response, Transform target) { if (button != null) { button.visible = true; button.clickable = (response != null) && response.enabled; if (response != null) { button.SetFormattedText(response.formattedText); } else if (showUnusedButtons) { button.SetUnformattedText(" "); // Need a blank space to make empty button visible. } button.target = target; button.data = response; } }
private void SetupContinueButton(GUIButton continueButton) { if (continueButton != null) { if (string.IsNullOrEmpty(continueButton.message) || string.Equals(continueButton.message, "OnClick")) continueButton.message = "OnContinue"; if (continueButton.target == null) continueButton.target = this.transform; } }