public void eraseLine(bool draw) { for (int i = 0; i < lines.Count; i++) { makeLine other = (makeLine)lines[i].GetComponent(typeof(makeLine)); other.addPoints(brush, draw); } }
public void drawLine(bool draw) { makeLine other = (makeLine)lines[lines.Count - 1].GetComponent(typeof(makeLine)); other.addPoints(brush, draw); }