Hello there. I am currently working on my first unity-project (3D). So far i have a working CharacterController and an Enemie which is Patroling if the Player is outside of a given sphere around the enemie. If the Player enters the Sphere, the enemie starts chasing the player until he leaves the sphere again. All that works perfectly fine, but i dont like that the enemie starts patroling right away after the player leaves the sphere. I want it to stand still for a moment (and later animate to look around). To achieve that, i have to chech if and when the player leaves the sphere. I obviously already have a bool which checks if the player is inside the sphere or outside, but i have no idea how to check when the bool turns from true to false again.
Im looking forward for a few helpfull answers
best regards, Sakul156
Thanks in Advance! ![]()