Turning Direction Light off at rotation point.

Hi guys.

complete newb when it comes to c# coding. so bare with me.

Been messing about with a day night cycle.I have a directional light rotating and i noticed you can only have 1 directional light giving off shadows.

so i am trying to turn the “sun” light off when it goes below land and turn on a “moon” light as it comes up.

Any tips on how to do this?

Cheers.

heres is a good tutorial for it

Thanks mate not sure how i missed that one.