public void Attach()
 {
     if (!PortraitTagSelector)
     {
         PortraitTagSelector = PortraitTagSelector.CreateObject();
     }
 }
        public void Clear()
        {
            Transform portraitTagSelector;

            while (portraitTagSelector = Game.Instance.UI.Common.transform.Find("CharacterBuild/Body/Content/PortraitTagSelector"))
            {
                portraitTagSelector.SafeDestroy();
                PortraitTagSelector = null;
            }
        }
 public void Detach()
 {
     if (PortraitTagSelector)
     {
         try
         {
             PortraitTagSelector.Clear();
             PortraitTagSelector.SafeDestroy();
         }
         finally
         {
             PortraitTagSelector = null;
         }
     }
 }