void OnEnable() { // setup the font for the 'begin' 'end' text _labelStyle = new GUIStyle(); _labelStyle.fontStyle = FontStyle.Bold; _labelStyle.normal.textColor = Color.white; _labelStyle.fontSize = 16; _indexStyle = new GUIStyle(); _indexStyle.fontStyle = FontStyle.Bold; _indexStyle.normal.textColor = Color.white; _indexStyle.fontSize = 12; _target = (DummySpline)target; }
void OnDisable() { _target = null; _labelStyle = null; _indexStyle = null; }