示例#1
0
        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;
        }
示例#2
0
 void OnDisable()
 {
     _target     = null;
     _labelStyle = null;
     _indexStyle = null;
 }