So whenever I fire a raycast, say at a fence, that hit detection is fired off to another state that has a debug.log with the comment being "Raycast Hit Fence."
However, it keeps debugging this comment every frame the character is raycasting to the fence, which caused the game to crash because I exceeded the loop.
How can I make the raycast send the transition only once every time the player walks in front of the fence?