Beispiel #1
0
        private void CreatLane(string name, Transform parent, bool isRe)
        {
            GameObject lineObj = new GameObject(name);

            lineObj.transform.SetParent(parent);
            Lane lane = lineObj.AddComponent <Lane>();

            lane.bZ        = lineObj.AddComponent <BezierCurve>();
            lane.isReverse = isRe;
            lane.Init(bZPoints.Length);
            LaneArr.Add(lane);
        }