Ejemplo n.º 1
0
        void ShowNotification()
        {
            IsNotify = true;
            TPAchievement achievement = AchievementQueue.Dequeue();
            GameObject    GO          = achievement.Notification.gameObject;

            if (!_NotifyGO.ContainsKey(GO.name))
            {
                string _GOName = GO.name;
                GO = Instantiate(GO);
                GO.SetActive(false);
                _NotifyGO.Add(_GOName, GO);
            }
            else
            {
                GO = GetNotificationObject(achievement);
            }
            TPNotification notification = GO.GetComponent <TPNotification>();

            OnNotifySet(notification, achievement);

            StartCoroutine(IEShowNotification(GO, achievement));
        }
Ejemplo n.º 2
0
 void SetNotification(TPNotification notification, TPAchievement achievement)
 {
     notification.SetNotification(achievement);
 }