public void ShowUnitListOnParty_ONCLICK()
        {
            CommonUIButtonFunction("UI_Button_Click1", "ShowUnitListOnParty_ONCLICK()");
            UIManagerDirector party_manager_director = new UIManagerDirector(new HeroPartyManager());

            party_manager_director.GetSelectOne();
            party_manager_director.SetSelectUI();

            ShowUIWindow("HeroUnitListWindow");
            HideUIWindow("DebugHeroPartyWindow");
        }
Esempio n. 2
0
 /// <summary>
 /// @param index
 /// </summary>
 public override void ClickButtonAction(int index)
 {
     if (!is_director_select)
     {
         HeroPartyButton button = Buttons[index].GetComponent <HeroPartyButton>();
         button.ToggleSelect();
         button.SetButtonText();
     }
     else
     {
         UIManagerDirector party_manager_director = new UIManagerDirector(new HeroPartyManager());
         HeroPartyButton   button = Buttons[index].GetComponent <HeroPartyButton>();
         button.ToggleSelect();
         party_manager_director.GetSelectOne();
         party_manager_director.SetSelectUI();
         party_manager_director.SelectAllClear();
     }
     SoundManager.instance.PlaySound("UI_Button_Click1");
 }