April 2017
Beginner to intermediate
376 pages
8h 4m
English
With the GameBall selected, click on AddComponent | NewScript and create the ThrowBall.cs class. Grab this file from the downloads. We will not put the whole thing here, but we will go over the important area of the script:

Here, in our Update() function--remember that it's called every frame--ApplicationManager.Instance.ThrowBall is checked. If that bool is true, this code is executed:
Read now
Unlock full access