Project 2
Last updated
Last updated
For Project 2, we'll begin to create a framework for a branching-narrative adventure game.
See previous section: Project2 starter-assets:
After saving a backup copy of Project1, open the Unity Project, Use menu options: Assets >Import Package > Custom Package. This will add 2 scenes and 4 custom scripts to your project as shown in the images below:
For this project to work, you must first go into your project's Build Settings. (File > Build Settings) You must add both scenes to the Scenes to Build Panel. You can drag the scenes from your assets directly into the Scenes to Build Panel. Note the ordering, BeginScene must be higher than EndScene in the order, it will have a 0 on the right side of the panel, while EndScene will have a 1.
If you've done the above steps correctly, you should be able to use the EndButton to go to the EndScene, and from there, you should be able to use the StartButton to return to the StartScene.
Sometimes Unity acts glitchy with UI-Panels and UI-Text gameObjects. If the TitlePanel and TitleText aren't displaying correctly, select the TitlePanel in the hierarchy and then select the rect-transform tool which shows the positioning blue circles at the corners of the panel. Try dragging the top blue circles below the bottom circles to see if the panel has flipped backwards. Also try dragging the left corners over the right corners. This may also be necessary to do with the text element. If these efforts don't fix the problem, simply delete the panel and add new panel / text gameObjects to recreate the corrupted gameObjects.