private Vector3[] GetLinePathOfType(ConnectionType t, Vector3 start, Vector3 end) { switch (t) { default: return(LineHelper.GetEasedLine(start, end, lineSegments, 2f)); case ConnectionType.Default: return(LineHelper.GetEasedLine(start, end, lineSegments, 2f)); case ConnectionType.Power: return(LineHelper.GetStraightLine(start, end)); } }
// Update is called once per frame void Update() { r.SetPositions(LineHelper.GetEasedLine(a, b, it, ea, down)); }