$ 0 0 `troop` is decremented down to zero, when your "End of the loop" is printed. This code is then executed every time `LateUpdate` is called.