예제 #1
0
    public void Shuffle()
    {
        List <int> numbers = new List <int> {
            1, 2, 3, 4, 5
        };

        numbers.Shuffle();
        CollectionExtension.ForEach(numbers, item => Debug.Log(item));
    }
예제 #2
0
        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));
        }
예제 #3
0
 public void HideObject(TEnum key)
 {
     CollectionExtension.ForEach(_onHideLogic, logic => logic(key));
 }