Beispiel #1
0
 /// <summary>
 /// Filter method which takes a verify method and darkens the entries which
 /// fulfills the criterias.
 /// </summary>
 /// <param name="filter"></param>
 public void FilterDark(EntryListFilter filter)
 {
     for (int i = 0; i < entries.Count; i++)
     {
         entries[i].SetDark(filter(entries[i]));
     }
 }
Beispiel #2
0
 /// <summary>
 /// Filter method which takes a verify method and darkens the entries which
 /// fulfills the criterias.
 /// </summary>
 /// <param name="filter"></param>
 public void FilterShow(EntryListFilter filter)
 {
     entries.Clear();
     for (int i = 0; i < original.Count; i++)
     {
         original[i].gameObject.SetActive(filter(original[i]));
         if (filter(original[i]))
         {
             entries.Add(original[i]);
         }
     }
     Move(0);
     UpdateEntries();
 }