예제 #1
0
 public void SerializeNotification(DelayGramNotification newNotification)
 {
     if (currentSave.notifications == null)
     {
         currentSave.notifications = new List <DelayGramNotification>();
     }
     currentSave.notifications.Add(newNotification);
     SaveGame();
 }
예제 #2
0
    private void AddNewNotification(int newNotifications)
    {
        var notificationString = newNotifications.ToString() + " people liked your photo";

        var dgNotification = new DelayGramNotification();

        dgNotification.text     = notificationString;
        dgNotification.dateTime = DateTime.Now;
        serializer.SerializeNotification(dgNotification);
    }