Esempio n. 1
0
        public void Awake()
        {
            PoolManager poolInstance = PoolManager.Instance;

            for (int i = 0; i < m_objectsTobePooled.Length; i++)
            {
                PoolInitializeObject objectTobeInitialized = m_objectsTobePooled[i];
                poolInstance.CreatePool(objectTobeInitialized.m_poolObjectPrefab, objectTobeInitialized.m_poolMaxSize);
            }
        }
Esempio n. 2
0
        public void Awake()
        {
            ms_sharedInstance   = GetComponent <PoolManager>();
            this.m_objectsPools = new Dictionary <string, ObjectPool>();

            for (int i = 0; i < objectsTobePooled.Length; i++)
            {
                PoolInitializeObject objectTobeInitialized = objectsTobePooled[i];
                CreatePool(objectTobeInitialized.m_poolObjectPrefab, objectTobeInitialized.m_poolMaxSize);
            }
        }