Creating logic for security cameras is very simple! Let’s have a look.
We want the camera to rotate back and forth at a 45-degree angle. We also want the camera to detect the player.
Security Camera Game Object
We want to select the game object with the camera mesh.