12. And, finally, add the closing bracket for the animation block below the ProcessAudio line.
There’s only one little issue left to tackle before you can test the new code. In order for the audio clip to have the same delay as the animation clip, you left it inside the if(animates code block. Some objects, such as the LockPlate, don’t animate at all, and some objects don’t have an animation associated with all of their states. The solution is easy. You can copy the call to ProcessAudio and add it to an else statement.
1. Copy the ProcessAudio line.
2. Directly below the if(animates block's closing bracket, add: