コード例 #1
0
 public void SendNotification(Notification_SO notification)
 {
     StartCoroutine(NotificationDelay());
     MoveNotification(true);
     notificationTitle.text = notification.getTitle();
     systemMessagesReader.CreateNewMessage(notification);
     AudioManager.instance.Play("notificationSound");
 }
コード例 #2
0
    public void SendNotification(Notification_SO notification)
    {
        popUpNotification.SendNotification(notification);

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

        return(aux);
    }