public void Clear()
{
ParticleSystem root = this.GetRoot();
if (this.ShouldManagePlaybackState(root) && (root != null))
{
PlayState playing;
if (this.IsPlaying())
{
playing = PlayState.Playing;
}
else if (this.IsPaused())
{
playing = PlayState.Paused;
}
else
{
playing = PlayState.Stopped;
}
int instanceID = root.GetInstanceID();
SessionState.SetVector3("SimulationState" + instanceID, new Vector3((float)instanceID, (float)playing, ParticleSystemEditorUtils.editorPlaybackTime));
}
this.m_ParticleSystemCurveEditor.OnDisable();
ParticleEffectUtils.ClearPlanes();
Tools.s_Hidden = false;
if (root != null)
{
SessionState.SetBool("ShowSelected" + root.GetInstanceID(), this.m_ShowOnlySelectedMode);
}
this.SetShowOnlySelectedMode(false);
GameView.RepaintAll();
SceneView.RepaintAll();
}