50 lines
945 B
C#
50 lines
945 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 智能感知
|
|
/// </summary>
|
|
public class IntelliSense : MonoBehaviour
|
|
{
|
|
public static IntelliSense Instance;
|
|
/// <summary>
|
|
/// 环境感知面板
|
|
/// </summary>
|
|
public GameObject ContextualawarenessPanel;
|
|
/// <summary>
|
|
/// 控制信号灯面板
|
|
/// </summary>
|
|
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);
|
|
}
|
|
}
|
|
}
|