Hi Community!
I have a problem. I want my enemy to LookAt the when the player isnt looking at him:
if(renderer.isVisible)
{
Debug.Log("i can see you");
//insert Stop Lookat thingy here
}
if(!renderer.isVisible)
{
transform.LookAt(player);
Debug.Log("Can't see you");
}
so how can i stop the Lookat function?