void OnTriggerEnter2D(Collider2D otherObject) { #if UNITY_IOS SocialServiceManager.GetInstance().UnlockAchievement(achievementName); #endif #if UNITY_ANDROID SocialServiceManager.GetInstance().UnlockAchievement(androidAchievementName); #endif }
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()); }