To create a Unity game that communicates with the web-server leaderboard, do the following:
- Import the provided Unity package, UnityLeaderboardClient.
- Run the provided Scene.
- Ensure your PHP leaderboard is up and running.
- If you are not running locally (localhost:8000), you'll need to update the URL by selecting the Main Camera in the Hierarchy, and then editing the Leader Board URL text for the Web Leaderboard (Script) component in the Inspector:
- Click on the UI Buttons to make Unity communicate with the PHP scripts that have access to the highscore database.