/// <summary> /// Accept the button repsonse as input, invoke and clear the callbacks, and hide the dialog /// </summary> private void HandleButtons(Response response) { //Temporary copy to allow for the calling of the dialog within a callback ModalButtonCallback tmpCallback = buttonCallback; ModalInputCallback tmpInputCallback = inputCallback; ModalDoubleInputCallback tmpDoubleInputCallback = doubleInputCallback; buttonCallback = null; inputCallback = null; doubleInputCallback = null; gameObject.SetActive(false); tmpCallback?.Invoke(response); tmpInputCallback?.Invoke(response, primaryInputField.text); tmpDoubleInputCallback?.Invoke(response, primaryInputField.text, secondaryInputField.text); }