void OnSelect(Unlockable <TieredUnit> tier) { MDebug.Log("SQUAD SELECTER SELECT TIER " + tier.Item.Tiers[0].Config.ID); if (SquadManager.Instance.selected_units.Contains(tier.Item)) { selector_buttons.GetView(tier).SetUnselected(); SquadManager.RemoveFromSquad(tier.Item); } else if (SquadManager.AddToSquad(tier)) { selector_buttons.GetView(tier).SetSelected(); } }
void OnUnSelectedSetView(RegionConfigDataBase unselected) { selecters.GetView(unselected).SetUnselected(); }