public void UpdateAlert(NotificationManager.Alert newAlert)
    {
        AlertList.Add(newAlert);

        if (!gameObject.activeSelf)
        {
            Initializing();
        }

        DisplayPanel();
    }
    void DisplayPanel()
    {
        TargetAlert = AlertList[0];

        TextBox.GetComponent <Text>().text = TargetAlert.Content;

        for (int i = 0; i < FunctionPanel.transform.childCount; i++)
        {
            if (i < TargetAlert.ButtonCount)
            {
                FunctionPanel.transform.GetChild(i).gameObject.SetActive(true);
            }
            else
            {
                FunctionPanel.transform.GetChild(i).gameObject.SetActive(false);
            }
        }
    }