private void LoadBuildingOfPerson(HistoryManController controller) { LocationHistoryPath_M path_m = controller.GetComponent <LocationHistoryPath_M>(); DepNode depnodeNow = MonitorRangeManager.GetDepNodeBuild(path_m.depnode); if (depnodeNow != null) { BuildingBox box = depnodeNow.GetComponent <BuildingBox>(); if (box) { box.LoadBuilding((nNode) => { FactoryDepManager.Instance.SetAllColliderIgnoreRaycastOP(true); }, false); } } }
/// <summary> /// 计算历史轨迹人员的所在区域 /// </summary> public void ShowArea() { //List<Position> ps = MultHistoryPlayUI.Instance.GetPositionsByPersonnel(personnel); List <Position> ps = LocationHistoryUITool.GetPositionsByPersonnel(personnel); if (ps != null) { if (currentPointIndex < ps.Count && currentPointIndex > -1) { Position p = ps[currentPointIndex]; DepNode depnodeT = RoomFactory.Instance.GetDepNodeById((int)p.TopoNodeId); DepNode depnodePri = MonitorRangeManager.GetDepNodeBuild(depnode); DepNode depnodeNow = MonitorRangeManager.GetDepNodeBuild(depnodeT); if (depnodeNow != null && depnodePri != depnodeNow && LocationHistoryManager.Instance.CurrentFocusController == historyManController) { BuildingBox box = depnodeNow.GetComponent <BuildingBox>(); if (box) { box.LoadBuilding((nNode) => { FactoryDepManager.Instance.SetAllColliderIgnoreRaycastOP(true); }, false); //LocationManager.Instance.TransparentPark(); //return; } } depnode = depnodeT; if (depnode) { LocationHistoryUITool.SetItemArea(personnel, depnode.NodeName); } } } }