Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 private void Remove(PathAnimator animator)
 {
     animators.Remove(animator);
     animator = null;
 }
Exemplo n.º 3
0
 private void Add(PathAnimator animator)
 {
     animators.Add(animator);
 }