18 lines
572 B
C#
18 lines
572 B
C#
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();
|
|
}
|
|
}
|