private void addWaitSection(Vector3 waypoint, float waitingTime) { Section waitSect = new Section(sections.Count, Section.Type.WAIT, waypoint, waypoint, 0, 0, 0); waitSect.setTinSection(waitingTime); sections.Add (waitSect); t_waitSum += waitingTime; }