Maze / Library /PackageCache /com.unity.collab-proxy@2.0.4 /Editor /PlasticSCM /UI /CloseWindowIfOpened.cs
| 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(); | |
| } | |
| } | |
| } | |