public void Init()
{
if (this.m_AddedCurves == null)
{
this.m_AddedCurves = new List<CurveData>();
this.m_Colors = new Color[] { new Color(1f, 0.6196079f, 0.1294118f), new Color(0.8745098f, 0.2117647f, 0.5803922f), new Color(0f, 0.6862745f, 1f), new Color(1f, 0.9215686f, 0f), new Color(0.1960784f, 1f, 0.2666667f), new Color(0.9803922f, 0f, 0f) };
this.m_AvailableColors = new List<Color>(this.m_Colors);
m_CurveEditorSettings.useFocusColors = true;
m_CurveEditorSettings.showAxisLabels = false;
m_CurveEditorSettings.hRangeMin = 0f;
m_CurveEditorSettings.vRangeMin = 0f;
m_CurveEditorSettings.vRangeMax = 1f;
m_CurveEditorSettings.hRangeMax = 1f;
m_CurveEditorSettings.vSlider = false;
m_CurveEditorSettings.hSlider = false;
m_CurveEditorSettings.showWrapperPopups = true;
m_CurveEditorSettings.rectangleToolFlags = CurveEditorSettings.RectangleToolFlags.MiniRectangleTool;
m_CurveEditorSettings.hTickLabelOffset = 5f;
m_CurveEditorSettings.allowDraggingCurvesAndRegions = true;
m_CurveEditorSettings.allowDeleteLastKeyInCurve = false;
TickStyle style = new TickStyle {
tickColor = { color = new Color(0f, 0f, 0f, 0.2f) },
distLabel = 30,
stubs = false,
centerLabel = true
};
m_CurveEditorSettings.hTickStyle = style;
TickStyle style2 = new TickStyle {
tickColor = { color = new Color(0f, 0f, 0f, 0.2f) },
distLabel = 20,
stubs = false,
centerLabel = true
};
m_CurveEditorSettings.vTickStyle = style2;
this.m_CurveEditor = new CurveEditor(new Rect(0f, 0f, 1000f, 100f), this.CreateCurveWrapperArray(), false);
this.m_CurveEditor.settings = m_CurveEditorSettings;
this.m_CurveEditor.leftmargin = 40f;
float num = 25f;
this.m_CurveEditor.bottommargin = num;
this.m_CurveEditor.topmargin = num;
this.m_CurveEditor.rightmargin = num;
this.m_CurveEditor.SetShownHRangeInsideMargins(m_CurveEditorSettings.hRangeMin, m_CurveEditorSettings.hRangeMax);
this.m_CurveEditor.SetShownVRangeInsideMargins(m_CurveEditorSettings.vRangeMin, m_CurveEditorSettings.hRangeMax);
this.m_CurveEditor.ignoreScrollWheelUntilClicked = false;
Undo.undoRedoPerformed = (Undo.UndoRedoCallback) Delegate.Combine(Undo.undoRedoPerformed, new Undo.UndoRedoCallback(this.UndoRedoPerformed));
}
}