using UnityEngine; using System.Collections; using AX.MessageSystem; using System; public class P_C_Analyzer : MonoBehaviour { // Use this for initialization void Start () { MessageDispatcher.AddListener("O", O); } void OnDestroy() { MessageDispatcher.RemoveListener("O", O); } private void O(IMessage msg) { if(MySceneManager.GetActiveScene().name == "4")//危化品场景具备理化性质查询功能 { CallExe(); } } public static void CallExe() { Application.OpenURL(Application.dataPath + "/理化性质查询.exe"); } }