Speak to me with codes than articles. Article reading seems to me chinese xD no offense xD
What i want to do is increase this score only when the current score is higher than the previous one,
With this line i am using the gamemanager.instance.score to put the value from my other class script and add it to the database. i am using playfab.
var stat = new StatisticUpdate { StatisticName = "Coins", Value = GameManager.Instance.score}; request.Statistics.Add(stat);
if i knew my highscore i would do an if statement gamemanager.instance.score with highscore and then i would add the
var stat = new StatisticUpdate { StatisticName = "Coins", Value = GameManager.Instance.score}; request.Statistics.Add(stat);