void Update()
    {
        if(Input.GetMouseButtonUp(0)){
            buttonHit = UIController.GetButtonHit();

            if (buttonHit)
            {
                exPanel = uiControl.GetExPanel();

                if (buttonHit.tag == "Temporary")
                {
                    //prevents opening/altering the expaneded panel if there isn't a creature.
                }

                else if (buttonHit == this.gameObject)
                {
                    uiControl.SetSelectedCritter(target);

                    if (!exPanel.isActiveAndEnabled)
                        {
                            exPanel.Activate(ExpandedPanel.State.CRITTERDETAILS);
                        }

                    else if (activeButton == this.gameObject)
                    {
                        exPanel.TogglePanel(ExpandedPanel.State.CRITTERDETAILS);
                        uiControl.SetSelectedCritter(target);

                        if (exPanel.isActiveAndEnabled)
                        {
                            activeButton = null;
                        }
                    }

                    activeButton = this.gameObject;
                }
            }
            else{
                buttonHit = null;
            }
        }
    }
 public void ButtonClick()
 {
     exPanel = uicontrol.GetExPanel();
     exPanel.TogglePanel(ExpandedPanel.State.EVOTREE);
 }