Exemple #1
0
 public void DisplayHighscore()
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         HighscorePlugin.Get().ShowHighscoreDialog();
     }
     else
     {
         Debug.LogWarning("This feature only works in Android devices");
     }
 }
Exemple #2
0
 void CheckLoadedScene(Scene scene, LoadSceneMode mode)
 {
     if (scene.name == SceneNameManager.Get().ScoreScreen&& FinalScore > HighscorePlugin.Get().GetHighscore())
     {
         if (Application.platform == RuntimePlatform.Android)
         {
             HighscorePlugin.Get().SetHighscore(FinalScore);
         }
         else
         {
             Debug.LogWarning("Highscore could not be saved because application platform is not Android4");
         }
     }
 }