public void setTo(Unit unit)
        {
            if (unit == null)
            {
                setToNull(); return;
            }

            title.text    = unit.getName();
            desc.text     = unit.getDesc();
            task.text     = unit.getTaskShort();
            taskDesc.text = unit.getTaskDesc();

            if (unit.person == null)
            {
                clearPerson();
            }
            else
            {
                personBack.sprite = unit.person.getImageBack();
                personMid.sprite  = unit.person.getImageMid();
                personFore.sprite = unit.person.getImageFore();
                evidenceText.text = "Evidence: " + (int)(100 * unit.person.evidence) + "%";
            }

            if (unit.isEnthralled())
            {
                if (unit.movesTaken == 0)
                {
                    hasMoved.text = "Can Move";
                }
                else
                {
                    hasMoved.text = "Has Taken Turn";
                }
            }
            else
            {
                hasMoved.text = "Not an Enthralled Agent";
            }

            nationText.text = unit.society.getName();
            if (unit.parentLocation != null)
            {
                nationText.text += "\nFrom " + unit.parentLocation.getName();
            }
            nationFlag1.color = unit.society.color;
            nationFlag2.color = unit.society.color2;
        }
        public void setTo(Unit unit)
        {
            if (unit == null)
            {
                setToNull(); return;
            }

            title.text    = unit.getName();
            desc.text     = unit.getDesc();
            task.text     = unit.getTaskShort();
            taskDesc.text = unit.getTaskDesc();

            if (unit.person == null)
            {
                clearPerson();
            }
            else
            {
                personBack.sprite = unit.person.getImageBack();
                personMid.sprite  = unit.person.getImageMid();
                personFore.sprite = unit.person.getImageFore();
                if (World.staticMap.param.option_useAdvancedGraphics == 1)
                {
                    Person p = unit.person;
                    if (p.isMale)
                    {
                        personMid.sprite      = p.map.world.textureStore.cultures[p.culture.graphicsIndex].m_faces[p.imgAdvFace];
                        personAdvEyes.sprite  = p.map.world.textureStore.cultures[p.culture.graphicsIndex].m_eyes[p.imgAdvEyes];
                        personAdvMouth.sprite = p.map.world.textureStore.cultures[p.culture.graphicsIndex].m_mouths[p.imgAdvMouth];
                        personAdvHair.sprite  = p.map.world.textureStore.cultures[p.culture.graphicsIndex].m_hair[p.imgAdvHair];
                        personAdvJewel.sprite = p.map.world.textureStore.cultures[p.culture.graphicsIndex].m_jewels[p.imgAdvJewel];
                    }
                    else
                    {
                        personMid.sprite      = p.map.world.textureStore.cultures[p.culture.graphicsIndex].f_faces[p.imgAdvFace];
                        personAdvEyes.sprite  = p.map.world.textureStore.cultures[p.culture.graphicsIndex].f_eyes[p.imgAdvEyes];
                        personAdvMouth.sprite = p.map.world.textureStore.cultures[p.culture.graphicsIndex].f_mouths[p.imgAdvMouth];
                        personAdvHair.sprite  = p.map.world.textureStore.cultures[p.culture.graphicsIndex].f_hair[p.imgAdvHair];
                        personAdvJewel.sprite = p.map.world.textureStore.cultures[p.culture.graphicsIndex].f_jewels[p.imgAdvJewel];
                    }
                    personFore.sprite = p.getImageFore();
                }
                else
                {
                    personAdvEyes.sprite  = world.textureStore.person_advClear;
                    personAdvMouth.sprite = world.textureStore.person_advClear;
                    personAdvHair.sprite  = world.textureStore.person_advClear;
                    personAdvJewel.sprite = world.textureStore.person_advClear;
                }

                personFore.color = Color.white;
            }

            if (unit.isEnthralled())
            {
                if (unit.movesTaken == 0)
                {
                    hasMoved.text = "Can Move";
                }
                else
                {
                    hasMoved.text = "Has Taken Turn";
                }
            }
            else
            {
                hasMoved.text = "Not an Enthralled Agent";
            }

            nationText.text = unit.society.getName();
            if (unit.parentLocation != null)
            {
                nationText.text += "\nFrom " + unit.parentLocation.getName();
            }
            nationFlag1.color = unit.society.color;
            nationFlag2.color = unit.society.color2;


            specialDesc.text  = unit.specialInfoLong();
            specialText.color = unit.specialInfoColour();
            specialText.text  = unit.specialInfo();
        }