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)); }
void SetNotification(TPNotification notification, TPAchievement achievement) { notification.SetNotification(achievement); }