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