private static void Show_Profiler_Particle_Select()
 {
     if (window == null)
     {
         window = (PartilceProfilerTools)EditorWindow.GetWindow(typeof(PartilceProfilerTools), false, "ParticleTools v1.0");
     }
     window.Init();
     window.Show();
 }
    void OnDisable()
    {
        EditorApplication.update -= OnEditorUpdate;

        if (particle_mono_profilor != null)
        {
            DestroyImmediate(particle_mono_profilor.gameObject);
        }
        window = null;
    }
 private static void Show_Profiler_Particle()
 {
     if (window == null)
     {
         Rect rect = new Rect(0, 0, 550, 800);
         window         = (PartilceProfilerTools)EditorWindow.GetWindow(typeof(PartilceProfilerTools));
         window.minSize = new Vector2(rect.width, rect.height);
         window.maxSize = new Vector2(rect.width, rect.height);
     }
     window.Init();
     window.Show();
 }