|
@@ -117,7 +117,7 @@ public class TestJsonManage : MonoBehaviour
|
|
|
GameObject route = GameObject.Instantiate(meshRoute, routes.transform);
|
|
|
Vector3 endPos = new Vector3((float)data.points[j].X, 0, (float)data.points[j].Y);
|
|
|
Vector3 exitPos = new Vector3((float)data.points[j + 1].X, 0, (float)data.points[j + 1].Y);
|
|
|
- Debug.Log(endPos + " " + exitPos);
|
|
|
+
|
|
|
route.GetComponent<TestRoute>().SetRoute(endPos, exitPos , Index);
|
|
|
route.SetActive(true);
|
|
|
|
|
@@ -185,22 +185,23 @@ public class TestJsonManage : MonoBehaviour
|
|
|
switch (data.navLines[i].points[j].MN)
|
|
|
{
|
|
|
case "Transformers":
|
|
|
- QueryBox("P6", data.navLines[i].points[j]);
|
|
|
+ QueryBox("Party", data.navLines[i].points[j]);
|
|
|
break;
|
|
|
case "Car":
|
|
|
- QueryBox("P4Car", data.navLines[i].points[j]);
|
|
|
+ QueryBox("Gongye", data.navLines[i].points[j]);
|
|
|
break;
|
|
|
case "Subway":
|
|
|
QueryBox("Subway", data.navLines[i].points[j]);
|
|
|
break;
|
|
|
|
|
|
case "Solar":
|
|
|
- QueryBox("QuestionContral", data.navLines[i].points[j]);
|
|
|
+ QueryBox("Chemical", data.navLines[i].points[j]);
|
|
|
break;
|
|
|
case "Library":
|
|
|
-
|
|
|
- int index = 0;
|
|
|
- SettingBox(list_Box[list_Box.Count - 1], new Vector3((float)data.navLines[i].points[j].X, (float)data.navLines[i].points[j].Z, (float)data.navLines[i].points[j].Y));
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ QueryBox("Library", data.navLines[i].points[j]);
|
|
|
|
|
|
|
|
|
|