Example #1
0
 public static ISocialServices GetSocialServices()
 {
     if (mInstance == null)
     {
         #if UNITY_ANDROID
         mInstance = new SocialAndroid();
         #else
         mInstance = new SocialMacPc();
         #endif
     }
     return(mInstance);
 }
Example #2
0
 private GameManager()
 {
     socialServices = FactorySocial.GetSocialServices();
     socialServices.LeaderboardSetDefaultKeyForUI(LEADERBOARD_ID_LEVEL);
     playerData = PlayerData.LoadFromDisk();
 }