csharp2 C#, Unity3D, 외부 프로세스 실행시키기 런쳐 만들어서 외부 프로세스 실행 public class ScProcessStarter : MonoBehaviour { [System.Runtime.InteropServices.DllImport("User32", EntryPoint = "FindWindow")] private static extern System.IntPtr FindWindow(string lpClassName, string lpWindowName); [System.Runtime.InteropServices.DllImport("user32.dll")] public static extern void SetForegroundWindow(System.IntPtr hWnd); [System.Runtime.InteropServices.DllImp.. 2023. 3. 7. public T GetData(string a_strKey) public T GetData(string a_strKey) { string _strValue; data.TryGetValue(a_strKey, out _strValue); object _value = null; if (typeof(T) == typeof(int)) { _value = int.Parse(_strValue); } if (typeof(T) == typeof(float)) { _value = float.Parse(_strValue); } if (typeof(T) == typeof(string)) { _value = _strValue; } return (T)_value; } 2022. 2. 22. 이전 1 다음