10 [Tooltip(
"Enter in same target consecutively to turn on velocity tracking for that target.")]
13 public bool UseVelocity {
get;
private set; }
17 private int currentTargetIndex;
21 currentTargetIndex = 0;
22 if (Targets.Length > 0)
24 CurrentTarget = Targets[currentTargetIndex];
34 if (Targets.Length == 0)
42 currentTargetIndex %= Targets.Length;
45 Transform newTarget = Targets[currentTargetIndex];
46 if (CurrentTarget == newTarget)
50 CurrentTarget = newTarget;