Example #1
0
        public List <UnityObjectWrapper <GameObject> > GetRecycleRequests()
        {
            var weaponRecycle = _weaponController.GetRecycleRequests();

            foreach (var v in weaponRecycle)
            {
                if (v == null)
                {
                    _logger.WarnFormat("weapon recycle null");
                }
            }
            _recycleRequestBatch.AddRange(weaponRecycle);
            var wardrobeRecycle = _wardrobeController.GetRecycleRequests();

            foreach (var v in wardrobeRecycle)
            {
                if (v == null)
                {
                    _logger.WarnFormat("wardrobe recycle null");
                }
            }
            _recycleRequestBatch.AddRange(wardrobeRecycle);
            var propRecycle = _propController.GetRecycleRequests();

            _recycleRequestBatch.AddRange(propRecycle);
            foreach (var v in propRecycle)
            {
                if (v == null)
                {
                    _logger.WarnFormat("prop recycle null");
                }
            }
            return(_recycleRequestBatch);
        }