Ejemplo n.º 1
0
 public void ShowAchievementUI()
 {
     #if EASY_MOBILE
     if (GameServiceManager.IsInitialized())
     {
         GameServiceManager.ShowAchievementsUI();
     }
     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 ShowAchievementUI()
 {
     if (GameServiceManager.IsInitialized())
     {
         GameServiceManager.ShowAchievementsUI();
     }
     else
     {
         #if UNITY_ANDROID
         GameServiceManager.Init();
         #elif UNITY_IOS
         MobileNativeUI.Alert("Service Unavailable", "The user is not logged in.");
         #else
         Debug.Log("Cannot show achievements: platform not supported.");
         #endif
     }
 }