Sleeping guard interaction
Darren has avoided been detected by the guards and the cameras… Now it’s time to get the key card
First, let’s see what the sleeping guard looks like

The green cube is the grab zone
Activating the sleepingGuard cut scene
- Create a script and attach it to the grab zone game object
- Declare a
public sleepingGuard_Cutscene
gameobject - Create a
OnTriggerEnter
method and check ifother.CompareTag
is equals toPlayer
- If so, activate the
sleepingGuard_Cutscene
gameobject
When hitting play in the editor, the desired behaviour may not work correctly
Possible reasons:
- The cut scene gameobject has not been assigned in the inspector
- Both the grab zone gameobject and the player may have a
Collider
Component, but at least one of them must have aRigidbody
