void TryOpenChild() { string path = FileDialog.OpenFileDialog(AssetFileType.Exe, "SelectExe", Application.dataPath); if (!string.IsNullOrEmpty(path)) { if (windowswitch.OpenChildWindow(path, false)) { //打开子应用程序 StartCoroutine(DelyRegisterSender()); } } }
public void TryOpenHelpExe(string exePath) { windowswitch = new WindowSwitchUnity(); string path = exePath;// Application.dataPath.Substring(0, Application.dataPath.LastIndexOf("Demo")) + "FormLoader/FormLoader/bin/Debug/FormLoader.exe"; if (System.IO.File.Exists(path)) { #if UNITY_EDITOR if (windowswitch.OpenChildWindow(path, false, "1")) #else if (windowswitch.OpenChildWindow(path, false)) #endif { //打开子应用程序 StartCoroutine(DelyRegisterSender()); } } else { Debug.LogError("exe not fond"); } sendThread.Start(); }