You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1009 B
C#
40 lines
1009 B
C#
|
4 years ago
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
using SiegeSong;
|
||
|
|
|
||
|
|
namespace SiegeSong
|
||
|
|
{
|
||
|
|
public class NotificationManager : MonoBehaviour
|
||
|
|
{
|
||
|
|
public HUDManager hudManager;
|
||
|
|
|
||
|
|
public void Notify(string notificationText, string subtext = "", bool bigNotification = false, bool debug = false)
|
||
|
|
{
|
||
|
|
if (!debug)
|
||
|
|
{
|
||
|
|
if (bigNotification)
|
||
|
|
{
|
||
|
|
//hudManager.BigNotificationTitle = notificationText;
|
||
|
|
//hudManager.BigNotificationSubtitle = subtext;
|
||
|
|
hudManager.DisplayUIGroup(HUDGroup.BigNotificationArea);
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
hudManager.Notification = notificationText;
|
||
|
|
hudManager.DisplayUIGroup(HUDGroup.NotificationArea);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
void Start()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
void Update()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|