public void Login() { if (!OCBridge.IsGameCenterAvailable()) { return; } Social.localUser.Authenticate(HandleAuthenticated); }
public void UpdateReportProgress(string achieveId, int score, int totalScore) { if (!OCBridge.IsGameCenterAvailable()) { return; } if (Social.localUser.authenticated) { Social.ReportProgress(achieveId, (double)score / (double)totalScore * 100, HandleProgressReported); } }
public void UpdateScore(int score) { if (!OCBridge.IsGameCenterAvailable()) { return; } if (Social.localUser.authenticated) { Social.ReportScore(score, GameCenterKey.LadderId, HandleScoreReported); } }
public void ShowGameCenter() { if (!OCBridge.IsGameCenterAvailable()) { return; } if (isGameCenterSuccess && Social.localUser.authenticated) { Social.ShowAchievementsUI(); } }
public bool IsGameCenterOK() { return(_socialMgr.isGameCenterSuccess && OCBridge.IsGameCenterAvailable()); }