Example #1
0
 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;
    }
Example #3
0
 public void AddNotifToQueue(JsonNotification notif)
 {
     notifsToShow.Add(notif);
 }