void OnGUI()
{
if (s_Texts == null)
{
s_Texts = new Texts();
}
if (s_Icons == null)
{
s_Icons = new GUIContent[] { EditorGUIUtility.IconContent("HorizontalSplit"), EditorGUIUtility.IconContent("VerticalSplit") }
}
;
if (m_Target == null && (Selection.activeGameObject != null || ParticleSystemEditorUtils.lockedParticleSystem != null))
{
InitEffectUI();
}
DoToolbarGUI();
if (m_Target != null && m_ParticleEffectUI != null)
{
m_ParticleEffectUI.OnGUI();
}
}