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(); } }
public void CreateNewMessage(Notification_SO messageSO) { CreateNewMessage(messageSO.getTitle(), messageSO.getBody()); }
public GameObject CreateNewMessage(Notification_SO messageSO) { GameObject aux = CreateNewMessage(messageSO.getTitle(), messageSO.getBody()); return(aux); }