public void Show()
 {
     isVideoPlay = false;
     window.SetActive(true);
     CameraDev.HighlightOn();
     ShowCurrentCameraVedio();
 }
    /// <summary>
    /// 显示背景
    /// </summary>
    private void Show()
    {
        devNode.HighlightOn();
        InfoBg.SetActive(true);
        var info = devNode.Info;

        if (info == null)
        {
            Log.Error("DeviceFollowUI.Show", "info == null");
            return;
        }
        if (TitleText.text != info.Name)
        {
            TitleText.text = info.Name;
        }
    }
示例#3
0
 /// <summary>
 /// 所有选中的设备高亮
 /// </summary>
 private void SelectObjsHighlighter()
 {
     foreach (GameObject g in SelectObjs)
     {
         if (g == null)
         {
             continue;
         }
         DevNode roomDev = g.GetComponent <DevNode>();
         if (roomDev)
         {
             roomDev.HighlightOn();
         }
         if (g.GetComponent <BoxCollider>() != null)
         {
             g.GetComponent <BoxCollider>().enabled = true;
         }
     }
 }
 /// <summary>
 /// 设置粗模的mesh和高亮
 /// </summary>
 private void SetNormalMeshHighlight(bool isOn)
 {
     if (meshRenderer)
     {
         meshRenderer.enabled = isOn;
     }
     Highlighter highLight = transform.GetComponent<Highlighter>();
     if(highLight)
     {
         highLight.enabled = false;
         highLight.enabled = true;
         HighlightManage manager = HighlightManage.Instance;
         if (manager)
         {
             DevNode dev = manager.GetCurrentHighLightDev();
             if(dev!=null&&dev.gameObject==gameObject)
             {
                 dev.HighlightOn();
             }
         }
     }
 }
示例#5
0
 public void ShowNormalCameraFollowUI()
 {
     ShowInfo();
     CameraDev.HighlightOn();
     InfoBg.SetActive(true);
 }