public PanelTarget(BattleHUD scene, GameObject obj)
                : base(obj)
            {
                Players     = new GOTable <GONavigationButton>(obj.GetChild(0));
                Enemies     = new GOTable <GONavigationButton>(obj.GetChild(1));
                Buttons     = new ButtonPair(obj.GetChild(2));
                PreventArea = new GOWidgetButton(obj.GetChild(3));
                Captions    = new CaptionBackground(obj.GetChild(4));

                foreach (GONavigationButton button in Players.Entries)
                {
                    button.EventListener.Click    += scene.onClick;
                    button.EventListener.Navigate += scene.OnTargetNavigate;
                }

                foreach (GONavigationButton button in Enemies.Entries)
                {
                    button.EventListener.Click    += scene.onClick;
                    button.EventListener.Navigate += scene.OnTargetNavigate;
                }

                Int32 index = 0;

                AllTargets = new GONavigationButton[Players.Count + Enemies.Count];
                foreach (GONavigationButton button in Players.Entries)
                {
                    AllTargets[index++] = button;
                }
                foreach (GONavigationButton button in Enemies.Entries)
                {
                    AllTargets[index++] = button;
                }
            }
 public ButtonPair(GameObject obj)
     : base(obj)
 {
     Player = new GOWidgetButton(obj.GetChild(0));
     Enemy  = new GOWidgetButton(obj.GetChild(1));
 }