예제 #1
0
 public void ShowLeaderboardUI()
 {
     #if EASY_MOBILE
     if (GameServiceManager.IsInitialized())
     {
         GameServiceManager.ShowLeaderboardUI();
     }
     else
     {
         #if UNITY_IOS
         MobileNativeUI.Alert("Service Unavailable", "The user is not logged in to Game Center.");
         #elif UNITY_ANDROID
         GameServiceManager.Init();
         #endif
     }
     #endif
 }
 public void ShowLeaderboardUI()
 {
     if (GameServiceManager.IsInitialized())
     {
         GameServiceManager.ShowLeaderboardUI();
     }
     else
     {
         #if UNITY_ANDROID
         GameServiceManager.Init();
         #elif UNITY_IOS
         MobileNativeUI.Alert("Service Unavailable", "The user is not logged in.");
         #else
         Debug.Log("Cannot show leaderboards: platform not supported.");
         #endif
     }
 }