public CachePool(string name, T original, int maxSize, float cacheTime = -1) { _name = name; _original = original; _maxSize = maxSize; _lastUseTime = cacheTime < 0 ? 0 : Time.time; _cacheTime = cacheTime; _cache = new SimplePool <T>(original.name, maxSize, AutoCreate); _usingObjects = new HashSet <T>(); Capacity += _maxSize; }