Beispiel #1
0
        //============================================================================================================//

        public static void Recycle(Type type, GameObject _gameObject)
        {
            if (!_typeDict.TryGetValue(type, out _bin))
            {
                _bin = new RecycleBin();
                _typeDict.Add(type, _bin);
            }

            _bin.Store(_gameObject);
            _gameObject.transform.parent = transform;
        }
Beispiel #2
0
        //============================================================================================================//

        public static void Recycle(Enum _enum, GameObject gameObject)
        {
            if (!_enumDict.TryGetValue(_enum, out _bin))
            {
                _bin = new RecycleBin();
                _enumDict.Add(_enum, _bin);
            }

            _bin.Store(gameObject);
            gameObject.transform.parent = transform;
        }