public void SetToucheCurveTo(int type) { if (m_toucheCurves == null) { m_toucheCurves = new Dictionary <int, ToucheTouch> (); } ToucheTouch touche = new ToucheTouch((ToucheTouch.Type)type, Vector2ToCurvePositions(m_currentCurve), 0); if (m_toucheCurves.ContainsKey(type)) { m_toucheCurves [type] = touche; } else { m_toucheCurves.Add(type, touche); } SaveData(); if (m_lineGraph) { m_lineGraph.CreateFixedCurves(data); } }