private void GenerateSmoothLine() { if (m_Size > 0 && m_Smooth > 0 && m_Points != null && m_Points.Length > 2) { mSmoothLine = TCRSpline.GetCRSpline(m_Points); } else { mSmoothLine = null; } }
private void OnDrawGizmosSelected() { if (mPath == null) { mPath = TCRSpline.GetCRSpline(m_Points); } if (mPath != null) { Gizmos.matrix = transform.localToWorldMatrix; mPath.DrawGizmos(m_Points.Length * 10, Color.green, ref normalSpeed); } }