UnlockedAchievementPopup.cs 503 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using System.Collections;
  3. public class UnlockedAchievementPopup : ScreenBase
  4. {
  5. public UILabel title;
  6. public UILabel description;
  7. public void SetData(FaceBookAchievement achievement, int index, int totalAchievementsUnlockedInLastPlay)
  8. {
  9. title.text = index+"/"+totalAchievementsUnlockedInLastPlay +" "+achievement.title;
  10. description.text = achievement.description;
  11. }
  12. void OnButtonOKMessage()
  13. {
  14. NotificationCenter.Post(NotificationType.ShowNextUnlockedAchievement);
  15. }
  16. }