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