How it works...
The player's scores are stored in an SQL database. Access to the database is facilitated through the PHP scripts provided by the web server project that was set up in the previous recipe.
In our example, all the PHP scripts were placed in a web Server folder for a local webserver. So, the scripts are accessed via http://localhost:8000/. However, since the URL is a public string variable, this can be set before running to the location of your Server and site code.
There are buttons in the Unity scene (corresponding to the actions the web leaderboard understands) that set up the corresponding action and the parameters to be added to the URL, for the next call to the web Server, via the LoadWWW() method. The OnClick() actions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access