调用外部的EXE和载入关卡

-----------------调用外部的EXE-----------------------

using UnityEngine;
using System.Collections;

public class openexe: MonoBehaviour {

 // Use this for initialization
 void Start () {
    System.Diagnostics.ProcessStartInfo  Info  =  new  System.Diagnostics.ProcessStartInfo();
  Info.FileName  =  "C:\\Program Files\\Autodesk\\3dsMax8\\3dsmax.exe";
  System.Diagnostics.Process.Start(Info);
 }
 
 // Update is called once per frame
 void Update () {
 
 }
}

 

-----------------载入关卡--------------

function OnGUI ()
{
   if (GUI.Button(new Rect(400,400,100,20),"Start"))
   {
      Application.LoadLevel(1);
   }

}

你可能感兴趣的:(exe)