예제 #1
0
 private void OnEnable()
 {
     heroPool.ClearSelections();
     if (heroPool.AvailableHeroes.None())
     {
         throw new InvalidOperationException("No Available Heroes");
     }
     slots.ForEach(s =>
     {
         s.SelectNextHero();
         s.SelectPreviousHero();
     });
 }