void SaveRecord() { // In playerprefs PlayerPrefsExt.SetFloatEncrypted(AREA_ATTACK_RECORD_PLAYERPREF_ID, _curRecord); // In google play services if active if (Social.localUser.authenticated) { long threeDecimals = FloatToLongThreeDecimal(_curRecord); Social.ReportScore(threeDecimals, AREA_ATTACK_LEADERBOARD_ID, (bool success) => {}); } }