private void Update() { if (Input.GetKeyDown(KeyCode.H)) { var testNotif = new JsonNotification() { appName = "Discord", title = "Me Myself and I", body = "This is a simulated notification because I'm alone." }; AddNotifToQueue(testNotif); //_wristboardManager.SetActiveNotif(testNotif); } }
private void NotifFileUpdated(object sender, FileSystemEventArgs e) { Debug.Log("File changed"); _notifSaveWatcher.EnableRaisingEvents = false; JsonNotification notif = JsonUtility.FromJson <JsonNotification>(File.ReadAllText(notifSavePath)); newNotif = true; activeNotif = notif; return; }
public void AddNotifToQueue(JsonNotification notif) { notifsToShow.Add(notif); }