SquareDash/Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/UI/CloseWindowIfOpened.cs
kingjuulian06 0efb85038a Arbeit 2
2023-11-21 22:03:49 +01: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();
}
}
}