The quick brown fox jumps over the lazy dog
Your alpha values for both dayC and nightC are 0, making it invisible.
Are you sure you want this?
Mathf.PingPong(Time.time, colorTime)
Especially because it makes no sense when colorTime is 0.
The quick brown fox jumps over the lazy dog
If you look at the scripting reference entry, you’ll see that it will return a value between 0 and the second parameter. In this case, since you are getting a value to use in a Lerp, you want a value between 0 and one. This means that the second parameter should be 1.
The same way you change the colors, there are 4 slides. Red, Green, Blue, and Alpha
The quick brown fox jumps over the lazy dog
Then the first parameter should be Time.time/colorTime
The quick brown fox jumps over the lazy dog
I said the first parameter, not the only parameter.
You need to learn to use the scripting reference and follow the error messages instead of blindly testing things out.
The quick brown fox jumps over the lazy dog