public void Init(Objects.Notification notification) { text.text = notification.Text; if (notification.Image != null) { image.sprite = notification.Image; image.enabled = true; } else { image.enabled = false; } }
public void QueueNotification(Objects.Notification notification) { notificationsQueue.Enqueue(notification); }