public override void OnCancel() { //base.OnCancel() if (StringTarget.text.Length > 0) { string text = StringTarget.text; text = text.Remove(text.Length - 1); StringTarget.text = text; } else if (StringTarget.text.Length == 0) { MenuMan.ToggleMenu(null, false); StringTarget.text = "Frobat"; } }
public void SendFileData(TextMeshProUGUI FileNameText) { MenuMan.SubmitFileName(FileNameText.text, fileIndex); }