예제 #1
0
 public void Login()
 {
     if (!OCBridge.IsGameCenterAvailable())
     {
         return;
     }
     Social.localUser.Authenticate(HandleAuthenticated);
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public void UpdateScore(int score)
 {
     if (!OCBridge.IsGameCenterAvailable())
     {
         return;
     }
     if (Social.localUser.authenticated)
     {
         Social.ReportScore(score, GameCenterKey.LadderId, HandleScoreReported);
     }
 }
예제 #4
0
 public void ShowGameCenter()
 {
     if (!OCBridge.IsGameCenterAvailable())
     {
         return;
     }
     if (isGameCenterSuccess && Social.localUser.authenticated)
     {
         Social.ShowAchievementsUI();
     }
 }
예제 #5
0
 public bool IsGameCenterOK()
 {
     return(_socialMgr.isGameCenterSuccess && OCBridge.IsGameCenterAvailable());
 }