Okay, I know your post is around 5 days old but thought I would post an answer as I have just reached this far in the course.
So let me see if I can talk you through it. I am going to assume SOME knowledge here, but you can very easily look up the holes in my explanation just by using Google.
float cycles = Time.time / period; // grows continually from 0
Cycles is being defined as Time Elapsed divided by (/) how long it takes for each Sine wave to finish (probably easier to think of this from peak-to-peak) and simultaneously how long it takes for the circle to be drawn.
So for instance if a sine wave is defined as 3 seconds and the time elapsed is 30 seconds - 30/3 = 10 cycles.
const float tau = Mathf.PI * 2f; // about 6.28
Tau is being defined as Pi (The ratio of the area of a circle to its diameter). Now if Radians were actually Diameterians (if this were a thing ^^), we would not have to account for the shortfall but because the radius of a circle is exactly half of the diameter, we need to increase the number by a factor of 2 (or 2f in the example).
When I first learned about the degrees/radians argument, I thought why use radians at all? (a radian is around the equivalent of around 58 degrees iirc). However degrees are only useful from the centre of the circle as when you used to use a compass at school to draw an arc, if you are staying on the circumference of a circle its not much use. Essentially no matter how big the circle is, the circumference will always equal its radius multiplied by around 6.3.
What this means is that as we change our period value, our function is calculating the value of Tau because the relationship is staying the same.
Wow that took a while, I think the rest of the code should be fairly self explanatory, however if yuo want em to elaborate into that, I’d be happy to oblige.
Thanks