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