public static void OpenWindow()
 {
     if (Instance == null)
     {
         Instance = GetWindow <StateMachineEditorWindow>();
         Instance.Show();
         Instance.Focus();
     }
     Instance.OnDestroy();
 }