コード例 #1
0
    public void CreatePointLineList()
    {
        GameObject routeListObj = GameObject.Find(routeGroup);

        routeManager = new RouteManager();
        int i = 0;

        while (i < routeListObj.transform.childCount)
        {
            Transform      parent         = routeListObj.transform.GetChild(i);
            RoutePointList routePointList = new RoutePointList();
            Debug.LogError("child: " + i + " " + parent.name);
            int j = 0;
            while (j < parent.transform.childCount)
            {
                Transform childNode = parent.transform.GetChild(j);
                Debug.LogError("child: " + j + " " + childNode.name);
                RoutePoint routePoint = new RoutePoint();
                routePoint.pointPos  = childNode.position;
                routePoint.pointName = childNode.name;
                routePointList.pointList.Add(routePoint);
                j++;
            }
            i++;
            routeManager.routeList.Add(routePointList);
        }
    }
コード例 #2
0
 public ActionResult RoutePointsOrders(RoutePointList model)
 {
     return(PartialView(model));
 }