Esempio n. 1
0
    public void displayNotifications()
    {
        Vector3 spawnPos = gameObject.transform.position;

        for (int i = 0; i < notificationList.getLength(); i++)
        {
            Notification tempNotification = notificationList.getNotificationAtIndex(i);
            spawnPos.y          += -100 * i;
            notificationInstance = Instantiate(notificationPrefab, spawnPos, Quaternion.identity);
            notificationInstance.GetComponentInChildren <Text>().text = tempNotification.Sender + "\t" + tempNotification.Time + "\n" + tempNotification.Text;
        }
    }