public int Score
{
get { return _score; }
set
{
_score = value;
ScoreText.text = _score.ToString();
if (PlayerPrefs.GetInt("HighScore") < _score)
{
PlayerPrefs.SetInt("HighScore", _score);
HighScoreText.text = _score.ToString();
//
Social.ReportScore(_score, leaderboard, (bool success) =>
{
if (success) print ("Good Add leaderboard");
});
//
}
}
}