| | 1 | | using System.Collections; |
| | 2 | | using DCL.Huds.QuestsTracker; |
| | 3 | | using TMPro; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCL.Huds.QuestsTracker |
| | 7 | | { |
| | 8 | | public class QuestNotification_QuestCompleted : MonoBehaviour, IQuestNotification |
| | 9 | | { |
| | 10 | | [SerializeField] internal TextMeshProUGUI questName; |
| | 11 | | [SerializeField] internal AudioEvent questCompleteAudioEvent; |
| | 12 | |
|
| 6 | 13 | | public void Populate(QuestModel questModel) { questName.text = questModel.name; } |
| | 14 | |
|
| | 15 | | public void Show() |
| | 16 | | { |
| 2 | 17 | | gameObject.SetActive(true); |
| 2 | 18 | | questCompleteAudioEvent.Play(); |
| 2 | 19 | | } |
| | 20 | |
|
| 6 | 21 | | public void Dispose() { Destroy(gameObject); } |
| 4 | 22 | | public IEnumerator Waiter() { yield return WaitForSecondsCache.Get(QuestsNotificationsController.DEFAULT_NOTIFIC |
| | 23 | | } |
| | 24 | | } |