In this section, we will create the ServerHiScore
script to post and load the high score data from the server, which we will use in the WWWForm
class to communicate with the PHP file on the website, which I already set up. We will also create a hash key and encrypt it with the MD5 encryption to protect and check for the user before posting the score to the
database.
Before we create the ServerHiScore
script, we will need to get the MD5 encryption script to encrypt our data. Let's create the new Unity JavaScript and name it MD5.js
in MonoDevelop. Then, browse to the following link:
http://www.unifycommunity.com/wiki/index.php?title=MD5.
On this page, you will see the MD5
class for ...
No credit card required