HUDManager hudManager;                  //the HUD Manager


    /*** FUNCTIONS ***/

    protected override void OnEnable()
    {
        base.OnEnable(); //run code from parent script first

        //Retrieve the buttons from the HUD Manager
        hudManager = GameObject.Find("HUDManager").GetComponent <HUDManager>();

        //Setup the actions for the player
        actions      = hudManager.ActivateActions(battleID);
        actions.name = gameObject.name + "Action";

        //Setting up the buttons for the player, and then renaming the text within each button
        attack = actions.transform.Find("AttackButton").GetComponent <Button>();
        attack.GetComponentInChildren <Text>().text = "Attack";

        skill = actions.transform.Find("SkillButton").GetComponent <Button>();
        skill.GetComponentInChildren <Text>().text = "Skill";

        defend = actions.transform.Find("DefendButton").GetComponent <Button>();
        defend.GetComponentInChildren <Text>().text = "Defend";

        surprise = actions.transform.Find("SurpriseButton").GetComponent <Button>();
        surprise.GetComponentInChildren <Text>().text = "Surprise!";

        //let the player click on the options available
        attack.onClick.AddListener(Attacking);
        skill.onClick.AddListener(Skills);
        defend.onClick.AddListener(Defending);
        surprise.onClick.AddListener(Surprise);

        actions.SetActive(true); //allow the player to take action

        //reset the enemy Targets every time, in case that there is a change in enemy count
        enemyTargets = new List <Button>();
    }