public void Shuffle() { List <int> numbers = new List <int> { 1, 2, 3, 4, 5 }; numbers.Shuffle(); CollectionExtension.ForEach(numbers, item => Debug.Log(item)); }
public void ShowObject(TEnum key) { if (_tabButton.TryGetValue(key, out var gameObject) == false) { Debug.LogError($"ShowObject - _tabLogic.ContainsKey({key}) == false"); return; } _tabButton.Keys .Where(item => item.Equals(key) == false) .ForEach(item => HideObject(item)); CollectionExtension.ForEach(_onShowLogic, logic => logic(key)); CollectionExtension.ForEach(_onShowObject, logic => logic(key)); }
public void HideObject(TEnum key) { CollectionExtension.ForEach(_onHideLogic, logic => logic(key)); }