I’m using this code to check if an object is in front of another, and when the player moves in front of the object the 1st time it reads “facing target”, but then after that there is no output, even if I go behind the object. This is in a method that is called every frame from the Update() function.
That code can’t complete without printing one of two messages to the console. If you aren’t seeing any messages, the code isn’t executing. If you aren’t getting any errors then you probably have a bug in your logic that prevents control ever reaching this code.