コード例 #1
0
 public Notification(int id, TypeOfNotification type, string message, string jmbg)
 {
     this.Id             = id;
     this.Type           = type;
     this.Message        = message;
     this.JmbgOfReceiver = jmbg;
 }
コード例 #2
0
    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);
    }