//Generates a list of clickable actions in Scroll Panel
    public void MakeActionList(List <Action> action)
    {
        GameObject.Find("ActionScrollList").transform.position = new Vector3(500f, 66f, 0.0f);
        BM.ActivateAction(1);
        buttonTemplate = GameObject.Find("ActionButton");
        clearActionList();

        for (int i = 0; i < action.Count; i++)
        {
            GameObject button = Instantiate(buttonTemplate) as GameObject;
            button.SetActive(true);

            string actionType = "";

            if (action[i].Type == ActionType.MeleeAttack)
            {
                actionType = "Close Attack";
            }
            else if (action[i].Type == ActionType.LongAttack)
            {
                actionType = "Ranged Attack";
            }
            else if (action[i].Type == ActionType.Heal)
            {
                actionType = "Heal";
            }
            else if (action[i].Type == ActionType.Slow)
            {
                actionType = "Slow";
            }
            if (i == 0)
            {
                GameObject.Find("ActionButton").GetComponent <ActionListButton>().SetText(actionType, action[i].Power, action[i].Range, i);
            }
            if (i == 1)
            {
                BM.ActivateAction(2);
                GameObject.Find("ActionButton2").GetComponent <ActionListButton>().SetText(actionType, action[i].Power, action[i].Range, i);
            }
            if (i == 2)
            {
                BM.ActivateAction(3);
                GameObject.Find("ActionButton3").GetComponent <ActionListButton>().SetText(actionType, action[i].Power, action[i].Range, i);
            }
            if (i == 3)
            {
                BM.ActivateAction(4);
                GameObject.Find("ActionButton4").GetComponent <ActionListButton>().SetText(actionType, action[i].Power, action[i].Range, i);
            }
        }
    }