Security Cameras in Unity
Simple cameras to detect the player.
Yesterday we gave our guards the ability to see the player using a box collider. Today we will setup some security cameras that will detect the player and trigger the same game over scenario.
The cameras are a little more complex than the guards. Guards see directly in front of them, while the cameras need to rotate and have a cone shaped line of sight.