Learn to make cutscenes in unity3d by building a stealth Game.
--
Objective: Challenge Detect Darren
Before doing this create a script called Security camera and attach the script from the camera cone from the first pillar and second pillar.
In the first step ,create a game object variable called game over cutscene, and don't forget to add the serialized field attribute
Select the two camera cone objects in the hierarchy and drag and drop the game over cutscene on the inspector.
In the next step, go to the security camera script and add the OnTriggerEnter method and activate the game over cutscene when the player collides with camera cone colliders.
This is how I solve this challenge.
See you in the next article.