private bool ShouldManagePlaybackState(ParticleSystem root) { bool activeInHierarchy = false; if (root != null) { activeInHierarchy = root.gameObject.activeInHierarchy; } return (!EditorApplication.isPlaying && activeInHierarchy); }