October 2015
Beginner
326 pages
5h 43m
English
Now that we have the buttons in the scene, let's make it such that, when we click on them, they will both start and quit the games, respectively.
Our buttons need to have some functionality on clicking them, but we need to provide a function for them to call to go to another level. Let's create a new object with a new component that we will use to do this.
MainMenuEvents.MyGame/Scripts folder and then select Create | C# Script and call it MainMenuEvents.using UnityEngine; using System.Collections; ...
Read now
Unlock full access