Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public void RecalculateLater()
 {
     mPath = null;
 }