Newer
Older
Simple-Multiplayer-Unity3D / Multiplayer Project / Library / PackageCache / com.unity.collab-proxy@2.7.1 / Editor / UI / CloseWindowIfOpened.cs
  1. using UnityEditor;
  2. namespace Unity.PlasticSCM.Editor.UI
  3. {
  4. internal static class CloseWindowIfOpened
  5. {
  6. internal static void Plastic()
  7. {
  8. if (!EditorWindow.HasOpenInstances<PlasticWindow>())
  9. return;
  10. PlasticWindow window = EditorWindow.
  11. GetWindow<PlasticWindow>(null, false);
  12. window.Close();
  13. }
  14. }
  15. }