protected virtual void DrawButton() { if ( GUILayout.Button(text,style,layoutOptions.ToArray()) && enabled ) { if (OnButtonPressed != null) { OnButtonPressed(this); } } }