You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
633 B
30 lines
633 B
3 years ago
|
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");
|
||
|
}
|
||
|
}
|