Ejemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D otherObject)
 {
             #if UNITY_IOS
     SocialServiceManager.GetInstance().UnlockAchievement(achievementName);
             #endif
             #if UNITY_ANDROID
     SocialServiceManager.GetInstance().UnlockAchievement(androidAchievementName);
             #endif
 }
Ejemplo n.º 2
0
    public void SaveAndShareImage()
    {
                #if UNITY_IOS
        SocialServiceManager.GetInstance().UnlockAchievement("sharingiscaring");
                #endif
                #if UNITY_ANDROID
        SocialServiceManager.GetInstance().UnlockAchievement(GPGSIds.achievement_sharing_is_caring);
                #endif

        StartCoroutine(ShareImageBackground());
    }