public void resetState() { GameObject.FindGameObjectWithTag("DrawCurve").GetComponent <DrawCurvesWithGLColor>().enabled = false; GameObject.FindGameObjectWithTag("DrawCurve").GetComponent <DrawCurvesWithGL>().enabled = false; GameObject.FindGameObjectWithTag("DrawCurve").GetComponent <DrawCurvesWithLineRenderer>().enabled = false; curMotion.clearTrailData(); studyMotion.clearTrailData(); TrailCurveAppraiseCtrl.left_color_list.Clear(); TrailCurveAppraiseCtrl.right_color_list.Clear(); is_first = true; }