Example #1
0
        public void RemoveUiCard(CardHand card)
        {
            IUiCard removed = null;

            foreach (var key in _registry.Keys)
            {
                if (_registry[key] == card)
                {
                    removed = key;
                }
            }

            if (removed != null)
            {
                _registry.Remove(removed);
            }

            Pooler.Release(removed?.gameObject);
        }