Example #1
0
 /// <summary>
 /// Advances the current split.
 /// </summary>
 private void AdvanceSplit()
 {
     currentSplit = ++splitIndex < splits.Length ? splits[splitIndex] : null;
 }
Example #2
0
 /// <summary>
 /// Called when the timer resets.
 /// </summary>
 public void OnReset()
 {
     currentSplit = splits.Length > 0 ? splits[splitIndex = 0] : null;
 }