private IEnumerator Start() { yield return(new WaitForEndOfFrame()); try { string m_readPath = Path.Combine(Application.streamingAssetsPath, configName); try { string filalPath = Path.Combine(Environment.CurrentDirectory, File.ReadAllText(m_readPath)); WindowsEventAPI.SetWindowEvent(filalPath, WindowsEventAPI.WindowsStyle.Minimized); } catch (Exception e) { Debug.LogError("Can't read files. " + e); } } catch (Exception e) { Debug.LogError("Can't read ExetnationPath.txt " + e); } }
public void RunExtensionApp() { string m_readPathq = Path.Combine(Application.streamingAssetsPath, configName); string filalPathq = Path.Combine(Environment.CurrentDirectory, File.ReadAllText(m_readPathq)); print("RunExtensionProgram " + filalPathq); try { string m_readPath = Path.Combine(Application.streamingAssetsPath, configName); string filalPath = Path.Combine(Environment.CurrentDirectory, File.ReadAllText(m_readPath)); WindowsEventAPI.SetWindowEvent(filalPath, WindowsEventAPI.WindowsStyle.Minimized); //print("RunExtensionProgram " + m_readPath); } catch (Exception e) { Debug.LogWarning(e); } }