private void Awake() { m_scrSystem = GetComponent <BezierCurveSystem>(); m_lineRenderer = GetComponent <LineRenderer>(); if (m_lineRenderer == null) { m_lineRenderer = gameObject.AddComponent <LineRenderer>(); } }
public void OnEnable() { m_currentSystem = (BezierCurveSystem)target; }