using UnityEngine; |
02 |
using System.Collections; |
03 |
using System.Diagnostics; //用于
允许使用(Process) // |
04 |
05 |
public class example
: MonoBehaviour { |
06 |
07 |
public Rect
windowRect = new Rect(20,
20, 120, 50); |
08 |
void OnGUI()
{ |
09 |
10 |
if (GUI.Button( new Rect(10,
20, 100, 20), "QQ" )) |
11 |
<font
color= "#f00000" > //
直接打开外部文件QQ等 exe</font> |
12 |
Process.Start( "C:\\Program
Files (x86)\\Tencent\\QQ\\Bin\\QQ.exe" ); |
13 |
14 |
} |
15 |
16 |
} |