Best Answer
Answer by _joe_ · May 16, 2017 at 10:59 AM
You can cast a ray between the enemy and the player, if it hits anything other than the player, that means that there is something obscuring.
Your answer
![](https://koobas.hobune.stream/wayback/20220612122116im_/https://answers.unity.com/themes/thub/images/avi.jpg)
![]() |
|
Close Help |
Answer by _joe_ · May 16, 2017 at 10:59 AM
You can cast a ray between the enemy and the player, if it hits anything other than the player, that means that there is something obscuring.