To PlayMode test a door animation, follow these steps:
- Create a new Unity project, and delete the default folder Scenes.
- Import the Unity package provided (doorScene.unitypackage).
- Add the following scenes – doorScene and menuScene – to the project Build (the sequence doesn't matter).
- Ensure that the scene currently open is menuScene.
- Display the Test Runner panel by choosing the following menu: Window | General | Test Runner
- Enable playmode tests for all assemblies. Do this by displaying the drop-down menu in the top-right corner of the Test Runner panel, and selecting Enable playmode tests for all assemblies (click OK to any message concerned with restarting the editor).
- Now restart the Unity Editor (just close the application ...