using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 智能感知 /// public class IntelliSense : MonoBehaviour { public static IntelliSense Instance; /// /// 环境感知面板 /// public GameObject ContextualawarenessPanel; /// /// 控制信号灯面板 /// public GameObject ControlLightPanel; public GameObject DrivesPane; private void Awake() { Instance = this; } void Start() { } void Update() { } public void AudiosTalk(string str) { if (str == "启动激光雷达") { ContextualawarenessPanel.SetActive(true); } else if (str == "切换信号灯") { DrivesPane.SetActive(true); } else if (str == "打开驾驶舱") { ContextualawarenessPanel.SetActive(true); } } }