public void onClick() { // user has confirmed they want to delete List <Frame> selection = new List <Frame>(); selection = mySelectionController.GetSelectedFrames(); foreach (Frame f in selection) { string command = "VRE to SAPTranslator: frameObjSetLoadPoint(" + f.getName() + ", DEAD, 1, 10, 0.5, 1000, Global, true, true, 0)"; mySapTranslatorIpcHandler.enqueueToOutputBuffer(command); } }
public void onClick() { if (isWait) { // user has confirmed they want to delete List <Frame> selection = new List <Frame>(); selection = mySelectionController.GetSelectedFrames(); foreach (Frame f in selection) { myConstructorController.deleteFrame(f.getName()); } mySelectionController.deselect(selection); StopCoroutine(deleteCheck()); buttonText.text = deleteText; isWait = false; } else { // delete button has not been pressed yet buttonText.text = confirmText; StartCoroutine(deleteCheck()); } }