/// <summary> /// Sets the Modal Panel behaviour to remove a saved file. /// </summary> public void confirmRemoveSave() { string file_name = gameObject.GetComponent <GameListButton>().Button_text; // Calls the Confirm function with: message to be shown, Ok assigned function, Cancel assigned function modal_panel.ConfirmAndNotify("Would you like to remove:\n" + file_name + "?", okFunction, cancelFunction); }