public override void ReportScore(string _leaderboardID, long _score, Action <bool> _onCompletion) { base.ReportScore(_leaderboardID, _score, _onCompletion); if (string.IsNullOrEmpty(_leaderboardID)) { return; } // Verify user authentication state before proceeding if (!VerifyUser()) { if (_onCompletion != null) { _onCompletion(false); } return; } // Create instance iOSScore _newScore = new iOSScore(_leaderboardID, LocalUser, _score); // Report score _newScore.ReportScore(_onCompletion); }
public override void ReportScore (string _leaderboardID, long _score, Action<bool> _onCompletion) { base.ReportScore(_leaderboardID, _score, _onCompletion); if (string.IsNullOrEmpty(_leaderboardID)) return; // Verify user authentication state before proceeding if (!VerifyUser()) { if (_onCompletion != null) _onCompletion(false); return; } // Create instance iOSScore _newScore = new iOSScore(_leaderboardID, LocalUser, _score); // Report score _newScore.ReportScore(_onCompletion); }