Files
fnl/Assets/Scripts/NotifierController.cs

18 lines
572 B
C#
Raw Normal View History

2026-02-21 16:40:15 -08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Michsky.MUIP;
public class NotifierController : MonoBehaviour {
[SerializeField] GameObject PopupGameObject;
[SerializeField] NotificationStacking notifier;
public void Notify(string title, string description) {
NotificationManager popup = Instantiate(PopupGameObject).GetComponent<NotificationManager>();
popup.title = title;
popup.description = description;
popup.transform.SetParent(notifier.transform);
popup.UpdateUI();
}
}