public Notification(int id, TypeOfNotification type, string message, string jmbg) { this.Id = id; this.Type = type; this.Message = message; this.JmbgOfReceiver = jmbg; }
public void ShowNotification(TypeOfNotification t) { GameObject g = Instantiate(Notifications[t]); g.GetComponent <Button>().onClick.AddListener(delegate { NotificationDestroyed(g); }); g.transform.parent = TopBar.transform; g.transform.localPosition = GetNotificationPosition(actineNotifications.Count); actineNotifications.Add(g); }