Creating Security Cameras in Unity

Jaime
Oct 5, 2021

--

Creating the security cameras is not that different from making patrol guards.

Both need to check if its detection collided with the Player to trigger the Game Over sequence. However, in this case, there’s an additional step of changing the material of the mesh to red when player is detected, disabling the animation controller to stop the camera from moving, and a delay before playing the Game Over Timeline sequence.

Also, there’s a need to hide the player while the Timeline is playing so that he is not shown in the scene. You can do this by specifying only when the object is enabled. In this case, the Player is only activated at the end of the sequence.

Now, security cameras are functional in my game.

--

--

Jaime
Jaime

No responses yet