static void Connect() { string token = UnityConnectSession.instance.GetAccessToken(); if (token.Length == 0) { StoreFactory.get().Dispatch(new NotLoginAction()); } ConnectShareEditorWindow window = (ConnectShareEditorWindow)GetWindow(typeof(ConnectShareEditorWindow)); window.minSize = new Vector2(600f, 360f); window.maxSize = window.minSize; window.Show(); }
public static UIWidgetsCoroutine StartCoroutine(IEnumerator coroutine) { ConnectShareEditorWindow window = (ConnectShareEditorWindow)GetWindow(typeof(ConnectShareEditorWindow), false, "", false); return(window.window.startCoroutine(coroutine)); }