Net-Game/Library/PackageCache/com.unity.collab-proxy@50ac96531b63/Editor/UI/CloseWindowIfOpened.cs
2025-03-28 08:33:16 -04:00

19 lines
404 B
C#

using UnityEditor;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class CloseWindowIfOpened
{
internal static void Plastic()
{
if (!EditorWindow.HasOpenInstances<PlasticWindow>())
return;
PlasticWindow window = EditorWindow.
GetWindow<PlasticWindow>(null, false);
window.Close();
}
}
}