| | 1 | | using System; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL.Social.Chat |
| | 5 | | { |
| | 6 | | public class PromoteChannelsToastComponentView : BaseComponentView, IPromoteChannelsToastComponentView |
| | 7 | | { |
| | 8 | | [SerializeField] internal ButtonComponentView closeButton; |
| | 9 | |
|
| | 10 | | public event Action OnClose; |
| | 11 | |
|
| | 12 | | public override void Awake() |
| | 13 | | { |
| 3 | 14 | | base.Awake(); |
| | 15 | |
|
| 4 | 16 | | closeButton.onClick.AddListener(() => OnClose?.Invoke()); |
| 3 | 17 | | } |
| | 18 | |
|
| | 19 | | public override void RefreshControl() |
| | 20 | | { |
| 0 | 21 | | } |
| | 22 | |
|
| 1 | 23 | | public void Show() => gameObject.SetActive(true); |
| | 24 | |
|
| 1 | 25 | | public void Hide() => gameObject.SetActive(false); |
| | 26 | | } |
| | 27 | | } |