GQ_Communicate/GQ_TongXin/Assets/Scripts/WJ/CabinetUIBase.cs

28 lines
1.0 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CabinetUIBase : MonoBehaviour
{
public virtual void OnMenuChanged(Menu menu)
{
if (WebInteraction.Inst.isWorkPlay && menu != Menu.M_全景监控_现场作业)
WebInteraction.Inst.CloseTicket();
if (!GameManager.Inst.search_box.activeSelf && menu == Menu.M_全景监控_柜门状态)
{
PatternChoose.Inst.transform.Find("Panel搜索框").GetComponent<SearchName>().LoadCabinet(SearchName.SearchType.);
GameManager.Inst.search_box.SetActive(true);
}
else if (GameManager.Inst.search_box.activeSelf && menu != Menu.M_全景监控_柜门状态)
{
GameManager.Inst.search_box.SetActive(false);
}
CreateLine createLine = PatternChoose.Inst.transform.Find("画线").GetComponent<CreateLine>();
if (createLine.xianLan.gameObject.activeSelf && menu!=Menu.M_数字孪生_线缆连接_展示)
{
createLine.xianLan.gameObject.SetActive(false);
}
}
}