Ejemplo n.º 1
0
 public void SubmitScoreComponent(OKScoreSubmitComponent score)
 {
     if (string.IsNullOrEmpty(score.gameCenterLeaderboardCategory))
     {
         Debug.Log("Submitting score to OpenKit");
         OKBridgeSubmitScore(score.scoreValue, score.OKLeaderboardID, score.metadata, score.displayString, score.GetCallbackGameObjectName());
     }
     else
     {
         Debug.Log("Submitting score to OpenKit & Gamecenter");
         OKBridgeSubmitScoreWithGameCenter(score.scoreValue, score.OKLeaderboardID, score.metadata, score.displayString, score.GetCallbackGameObjectName(), score.gameCenterLeaderboardCategory);
     }
 }
Ejemplo n.º 2
0
 public void SubmitScoreComponent(OKScoreSubmitComponent score)
 {
     if(string.IsNullOrEmpty(score.gameCenterLeaderboardCategory)) {
         Debug.Log("Submitting score to OpenKit");
         OKBridgeSubmitScore(score.scoreValue, score.OKLeaderboardID, score.metadata, score.displayString, score.GetCallbackGameObjectName());
     } else {
         Debug.Log("Submitting score to OpenKit & Gamecenter");
         OKBridgeSubmitScoreWithGameCenter(score.scoreValue, score.OKLeaderboardID, score.metadata, score.displayString, score.GetCallbackGameObjectName(), score.gameCenterLeaderboardCategory);
     }
 }
Ejemplo n.º 3
0
 public void SubmitScore(OKScoreSubmitComponent score)
 {
     if (score.displayString == null)
     {
         //Set the displayString to blank if it's null because you can't pass null strings to JNI functions
         score.displayString = "";
     }
     OKAndroidPlugin.CallStatic("submitScore", score.scoreValue, score.OKLeaderboardID, score.metadata, score.displayString, score.GetCallbackGameObjectName());
 }