public void DeleteLine() { this.connectedQuad = null; if (line != null) { Destroy(line); } }
public bool ConnectWithQuad(int priority, QuadLine other) { if (HasConnection()) { return(false); } this.connectedQuad = other; if (priority == 0) { line.SetPosition(1, other.transform.position); } return(true); }