/// <summary> /// 清除历史轨迹路线 /// </summary> public void ClearHistoryPaths() { //foreach (LocationHistoryPath path in historyPaths) //{ // DestroyImmediate(path.pathParent.gameObject);//人员是轨迹的子物体 // //DestroyImmediate(path.gameObject); //} //historyPaths.Clear(); PathList.ClearHistoryPaths(); SetFocusController(null); SetIsFocus(false); }