private void CreatePathAnimator(PathPoint point) { if (!point.IsLeaf) { foreach (PathPoint child in point.nextPathPoints) { var animator = new PathAnimator(Speed, point, child, Size); Add(animator); CreatePathAnimator(child); } } else if (Wrap) { var animator = new PathAnimator(Speed, point, PathController.path.First, Size); Add(animator); } }
private void Remove(PathAnimator animator) { animators.Remove(animator); animator = null; }
private void Add(PathAnimator animator) { animators.Add(animator); }