27 lines
560 B
C#
27 lines
560 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.EventSystems;
|
|
namespace RainbowArt.CleanFlatUI
|
|
{
|
|
public class ToastUI : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
Button button;
|
|
|
|
[SerializeField]
|
|
Toast toast;
|
|
|
|
void Start()
|
|
{
|
|
toast.gameObject.SetActive(false);
|
|
button.onClick.AddListener(OnButtonClick);
|
|
}
|
|
|
|
public void OnButtonClick()
|
|
{
|
|
toast.ShowToast();
|
|
}
|
|
}
|
|
} |