private void OnEnable() { //Initialize the script and set up the first segment in the curve. displayer = target as CurveDisplayer; if (!displayer.createdFirstSegment) { displayer.initializePoints(); } }
private void Awake() { _instance = this; displayer = GetComponent <CurveDisplayer>(); }