I'm setting up a simple time-of-day. I have 2 directional lights, that are facing opposite directions. One is for the sun, and the other the moon. I have 2 states; Sun and Moon. My Direction Light rotates over time, and when it hits 0 on the X axis, I want it to go to another State.
Right now I'm using a Float Compare, with Float One as the X rotation of the light that gets updated every frame, and Float 2 is at 0, with a tolerance of 0.1. When the light rotates to 0 it should transition to the other state, but I get loop count error:
"Loop count exceeded maximum: 1000 Default is 1000. Override in Fsm Inspector."
What am I missing, or is there a better way to set this up?
Thanks.