暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CloseWindowIfOpened.cs 404B

123456789101112131415161718
  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. }