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