Question by
Mcboss762 · Jun 23, 2018 at 01:26 AM ·
3daifps controller
If Enemy within 2 distance of player then display gameover
So basically I have an enemy AI that follows the player around the map. How would i make it so if the enemy touches you or it gets within 2 distance it displays a "Game Over" text in the middle of the screen? Im a beginner so please explain easily. Thanks so much!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612165317im_/https://answers.unity.com/themes/thub/images/avi.jpg)