Security Camera’s Animation
Create a reverse play animation loop
--
In this article we will be animating our security camera’s.
Window > Animation > Select Camera Gameobject > Animation (panel) > Create
Using the record function we made de camera rotate from about Y:45 to Y:-45 over 1 second.
Copy and Paste the Camera Animation
Create back and forth transitions
On the duplicated animation in the Inspector set the Speed to -1
Adjust the animation sample size so it doesn’t move that fast
Finally copy the animator component to the other security camera too.
Security Camera Detect Player
Using the same logic as we’ve done previously we can trigger the game over cutscene when the player walks into the camera’s vision.