// Line from the last connected space to the touch position void UpdateLine(Vector3 touchPos) { if (!currentDotLink.IsEmpty()) { BoardSpace lastConnected = currentDotLink.lastConnected; Vector3 lineStart = lastConnected.GetScreenPosition(); touchLine.SetType(lastConnected.GetCurrentDot().GetDotType()); touchLine.SetPoints(lineStart, touchPos); } }