I had already broken out the is target NOT visible into a method, but when I changed it to use the renderer:
private static bool IsTargetNotVisible(Target target)
{
var value = target.GetComponentInChildren<Renderer>();
return (!value.isVisible);
}
It always returns true. I put a break point on the return and the value is the body renderer and it says isVisible is true. What could be causing this? The enemy is not even close to being on the camera.