/// <summary>
    /// 显示工作票路线
    /// </summary>
    public void ShowMobileInspectionPath(PersonnelMobileInspection personnelMobileInspectionT)
    {
        Hide();
        if (personnelMobileInspectionT.list == null)
        {
            return;
        }
        for (int i = 0; i < personnelMobileInspectionT.list.Length; i++)
        {
            PersonnelMobileInspectionItem item = personnelMobileInspectionT.list[i];

            RoomFactory.Instance.GetDevByid(item.DevId,
                                            (devNodeT) =>
            {
                if (devNodeT == null)
                {
                    return;
                }
                GameObject targetTagObj1         = UGUIFollowTarget.CreateTitleTag(devNodeT.gameObject, Vector3.zero);
                GameObject uiObj1                = UGUIFollowManage.Instance.CreateItem(followUI.gameObject, targetTagObj1, "MobileInspectionUI", null, false, false);
                MobileInspectionFollowUI follow1 = uiObj1.GetComponent <MobileInspectionFollowUI>();

                List <PersonnelMobileInspectionItem> listT   = personnelMobileInspectionT.list.ToList();
                PersonnelMobileInspectionItem operationItemT = listT.Find((itemt) => itemt.DevId == devNodeT.Info.Id);
                try
                {
                    follow1.Init(true, operationItemT.nOrder.ToString(), devNodeT.name);
                }
                catch
                {
                    int j = 0;
                }
            });
        }
    }
    private void NewMethod(Transform tranT, bool isFinishedT, string numStr, string contentStr)
    {
        GameObject targetTagObj          = UGUIFollowTarget.CreateTitleTag(tranT.gameObject, Vector3.zero);
        GameObject uiObj                 = UGUIFollowManage.Instance.CreateItem(followUI.gameObject, targetTagObj, "MobileInspectionUI", null, false, false);
        MobileInspectionFollowUI follow3 = uiObj.GetComponent <MobileInspectionFollowUI>();

        follow3.Init(isFinishedT, numStr, contentStr);
    }
Example #3
0
    public void ShowDemo2()
    {
        Hide();
        GameObject targetTagObj1         = UGUIFollowTarget.CreateTitleTag(item11.gameObject, Vector3.zero);
        GameObject uiObj1                = UGUIFollowManage.Instance.CreateItem(followUI.gameObject, targetTagObj1, "TwoTicketFollowUI", null, false, false);
        MobileInspectionFollowUI follow1 = uiObj1.GetComponent <MobileInspectionFollowUI>();

        follow1.Init(true, "1", "操作点1");

        GameObject targetTagObj2         = UGUIFollowTarget.CreateTitleTag(item22.gameObject, Vector3.zero);
        GameObject uiObj2                = UGUIFollowManage.Instance.CreateItem(followUI.gameObject, targetTagObj2, "TwoTicketFollowUI", null, false, false);
        MobileInspectionFollowUI follow2 = uiObj2.GetComponent <MobileInspectionFollowUI>();

        follow2.Init(true, "2", "操作点2");

        GameObject targetTagObj3         = UGUIFollowTarget.CreateTitleTag(item33.gameObject, Vector3.zero);
        GameObject uiObj3                = UGUIFollowManage.Instance.CreateItem(followUI.gameObject, targetTagObj3, "TwoTicketFollowUI", null, false, false);
        MobileInspectionFollowUI follow3 = uiObj3.GetComponent <MobileInspectionFollowUI>();

        follow3.Init(true, "3", "操作点3");
    }