private void OnEnable() { if (!data) { data = GetData(); content = data.content; } }
private void OnEnable() { if (!data) { data = GetData(); } data.InitializeData(); content = data.content; if (!skin) { skin = AssetDatabase.LoadAssetAtPath <GUISkin>("Assets/InspectorHistory/Resources/InspectorHistorySkin.guiskin"); } if (buttonStyle == null) { buttonStyle = skin.GetStyle("button"); } }