public void SendNotification(Notification_SO notification)
 {
     StartCoroutine(NotificationDelay());
     MoveNotification(true);
     notificationTitle.text = notification.getTitle();
     systemMessagesReader.CreateNewMessage(notification);
     AudioManager.instance.Play("notificationSound");
 }
    public void SendNotification(Notification_SO notification)
    {
        popUpNotification.SendNotification(notification);

        if (musicIndex == 1)
        {
            AudioManager.instance.Play("firstSong");
        }
        else if (musicIndex == 2)
        {
            AudioManager.instance.StartSecondSong();
        }
    }
Exemple #3
0
 public void CreateNewMessage(Notification_SO messageSO)
 {
     CreateNewMessage(messageSO.getTitle(), messageSO.getBody());
 }
Exemple #4
0
    public GameObject CreateNewMessage(Notification_SO messageSO)
    {
        GameObject aux = CreateNewMessage(messageSO.getTitle(), messageSO.getBody());

        return(aux);
    }