Exemple #1
0
    void DisplayMessage(string message)
    {
        DisplayMessage displayMessage = Instantiate(displayMessagePrefab);

        displayMessage.Init(message, displayMessageContainer, messageFadeTime);
        messageList.Add(displayMessage);
        for (int i = messageList.Count - 1; i >= 0; i--)
        {
            messageList[i].MoveUp();
        }
        displayMessage.Show();
    }