OnBecameVisible???

Hi,
I simply want to follow the player when it’s seen by an enemy. How can i do that?
Thanks

What determines whether your enemy in game sees the player? If it is based off distance?, then use Vector3.Distance, otherwise it’s determined by what ever system you create for the player being “seen”.