private bool CheckRenderer() { bool rendererExists = false; if (m_Renderer != null) { rendererExists = true; } else if (m_Walker.m_Spline != null) { m_Renderer = (SplineRenderer)CreateInstance("SplineRenderer"); m_Renderer.SetSpline(m_Walker.m_Spline); rendererExists = true; } return(rendererExists); }