Database connection on Unity

2

I am developing a game in unity and we have reached the part where it is necessary to store the players' scores in a database. This information will be used in the rank that will appear at the end of the round. However, I do not understand how to do this part. Does anyone have any tips? Thank you.

    
asked by anonymous 27.09.2016 / 19:34

2 answers

3

Unity does not support database, in place you can use an XML or JSON file if there is too little data. If there are many, it is best to use some service over the internet.

To help: link

    
27.09.2016 / 19:52
0

Use playerprefs

To store:

if (score > highScore) {             PlayerPrefs.SetInt (highScoreKey, score);  }

to search:

highScore = PlayerPrefs.GetInt (highScoreKey, 0);

    
12.12.2016 / 14:47