/// <summary> /// Method to make input box appear. /// Note that this is not a constructor; the object should already exist for method to be invoked /// </summary> /// <param name="titleTextIn">Title of the inputBox</param> /// <param name="labelTextIn">Text of the label next to the field</param> /// <param name="okButtonTextIn">Text of ok button</param> /// <param name="cancelButtonTextIn">text of Cancel Button</param> /// <param name="handlerIn">Event handler for Ok click event</param> public void prompt(string titleTextIn, string labelTextIn, string okButtonTextIn, string cancelButtonTextIn, OkClickEventHandler handlerIn) { //set up variables titleText = titleTextIn; fieldLabel.text = labelTextIn; okButton.text = okButtonTextIn; cancelButton.text = cancelButtonTextIn; OkClick = handlerIn; //make visible isVisible = true; }