Exemplo n.º 1
0
 public void RegisterSelectionsInGroups(SelectionsGroups selGroups)
 {
     Init();
     foreach (CSelection sel in selections)
     {
         if (sel.selectionObj is ISelection s)
         {
             selGroups.RegisterSelection(s);
         }
     }
 }
Exemplo n.º 2
0
 private void Init()
 {
     if (_initialized)
     {
         return;
     }
     //TODO: add cards list init with iteration through CardDisplay-type children
     if (selectionsGroups == null)
     {
         selectionsGroups = GetComponent <SelectionsGroups>();
     }
     if (_cardsPool == null)
     {
         _cardsPool = GetComponent <CardsPool>();
     }
     _initialized = true;
 }