protected virtual void OnGetLeaderboardCompleted(StatEventArgs statEvent) { var handler = this.GetLeaderboardCompleted; if (handler != null) { handler(this, statEvent); } }
private void GetLeaderboardCompleted(object sender, StatEventArgs e) { if (e.EventData.ErrorCode != 0) { return; } LeaderboardResultEventArgs leaderboardArgs = (LeaderboardResultEventArgs)e.EventData.EventArgs; this.LoadResult(leaderboardArgs.Result); }