Exemplo n.º 1
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());
 }
Exemplo 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);
     }
 }
Exemplo n.º 3
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);
     }
 }
 public void SubmitScoreComponent(OKScoreSubmitComponent score)
 {
     score.scoreSubmissionFailed("Can't submit scores from Unity editor, native only");
 }
 public void SubmitScoreComponent(OKScoreSubmitComponent score)
 {
     score.scoreSubmissionFailed("Can't submit scores from Unity editor, native only");
 }