public void CancelPinning() { if (currentLine != null && (currentLine.pointA == null || currentLine.pointB == null)) { currentLine.DeleteLine(); } currentStatus = pinInteractionStatus.None; cancelButton.gameObject.SetActive(false); }
public bool DeleteTie(LineScript temp) { //NailScript connectedTo = null; //if (extremeOfLine == LineScript.Extremes.B) // connectedTo = temp.pointA; //else if (extremeOfLine == LineScript.Extremes.A) // connectedTo = temp.pointB; if (temp != null) { //tiedLine.Remove(temp); temp.DeleteLine(); return(true); } else { return(false); } }