Exemplo n.º 1
0
 private void NotifyIfUnlocked(Achievement achievement)
 {
     if (!achievement.userShown && achievement.unlocked)
     {
         AchievementNotificationManager notificationManager = AchievementNotificationManager.instance;
         notificationManager.AddToNotificationQueue(achievement);
         notificationManager.ShowNotification();
         achievement.userShown = true;
     }
 }
 private void Awake()
 {
     if (instance)
     {
         DestroyImmediate(gameObject);
     }
     else
     {
         DontDestroyOnLoad(gameObject);
         instance = this;
     }
 }