Labels

Wednesday 7 May 2014

Main and Pause Menu's

Originally the menus for the game were going to be made using Unity's in built GUI system. However this proved to be more difficult than expect and so instead I chose to use planes and raycasting to create our menus. Both the main and pause menus are scripted fairly similar however the pause menu alters the time scale of the game as it has to pause the rest of the game environment where as the main menu does not. Each plane is given a specific name that is read when clicked on by the player. If the name corresponds with one in the script then the code for that action is executed. Below are some screenshots of the menus and their code.

Main Menu




Pause Menu



No comments:

Post a Comment