public void ShowLeaderboard() { #if USE_GPGS Social.localUser.Authenticate((bool success) => { if (success) { PlayGamesPlatform.Instance.ShowLeaderboardUI(GPGSIds.leaderboard_high_score); CFirebase.LogEvent("leaderboard", "show"); } }); CFirebase.LogEvent("leaderboard", "button_click"); #endif }
public void ReportScoreAndShowLeaderboard(int score) { #if USE_GPGS Social.localUser.Authenticate((bool success) => { if (success) { Social.ReportScore(score, GPGSIds.leaderboard_high_score, (bool postSuccess) => { PlayGamesPlatform.Instance.ShowLeaderboardUI(GPGSIds.leaderboard_high_score); CFirebase.LogEvent("leaderboard", "show"); }); } }); #endif }