Game Development Reference
In-Depth Information
Listing 81:
A script to increment player's score every second and display it
The core function of this script is
IncrementScore()
, which increments internal score
counter by 1 every time it is called. It also updates the text on
display
if a text mesh