Files
aibis-dream/Assets/Plugins/CleanFlatUI/Scripts/Notification/NotificationContentFitterUI.cs
T
2024-10-10 12:46:34 +08:00

34 lines
845 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace RainbowArt.CleanFlatUI
{
public class NotificationContentFitterUI : MonoBehaviour
{
[SerializeField]
Button button;
[SerializeField]
NotificationContentFitter notification;
void Start()
{
notification.gameObject.SetActive(false);
button.onClick.AddListener(OnButtonClick);
}
public void OnButtonClick()
{
notification.OnCancel.AddListener(NotificationCancel);
notification.ShowNotification();
notification.ShowNotification();
}
void NotificationCancel()
{
Debug.Log("Cancel Button Clicked");
}
}
}