Ejemplo n.º 1
0
        public static PoolController Get(AbstractPool pool)
        {
            var type = pool.GetType();

            if (_ExistingPools == null)
            {
                _ExistingPools = new Dictionary <Type, PoolController>();
            }

            if (_ExistingPools.TryGetValue(type, out PoolController value))
            {
                if (value != null)
                {
                    return(value);
                }
            }

            _ExistingPools.Add(type, new PoolController(pool));

            return(_ExistingPools[type]);
        }
Ejemplo n.º 2
0
        private IEnumerator Debugging()
        {
            yield return(new WaitUntil(() => pool != null));

            poolType = pool.GetType().ToString();
        }