Tekkaman

导航

 

Path-O-LOGIC Keynote

1、

OnSpawned()
OnSpawned(SpawnPool pool)

2、

OnDespawned()
OnDespawned(SpawnPool pool)

3、PoolManager只有一个类成员

  

4、PoolManager.Pools[]

  class Pools["poolName"] : IDictionary

   returns: SpawnPool
  
Pools is the primary means for accessing PoolManager's SpawnPools. 
 
Note the use of square brackets when providing the name of a pool:

// Print the number of spawned instances in a pool called "Enemies"
Debug.Log(PoolManager.Pools["Enemies"].Count());
 
Create方法,创建一个新SpawnPool对象。
  
在SpawnPool在Awake()方法中,此SpawnPool会被添加到PoolManager.pools中。
  
5、SpawnPool
  
class SpawnPool : List<Transform>
 
Description
SpawnPools handle most of the PoolManager functionality by managing PrefabPools. SpawnPools are almost always accessed via the PoolManager.Pools dictionary.
 
\
 
posted on 2016-05-03 14:56  Tekkaman  阅读(229)  评论(0编辑  收藏  举报