Path-O-LOGIC Keynote

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());
 
Path-O-LOGIC Keynote_第1张图片
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.
 
Path-O-LOGIC Keynote_第2张图片\
参考: http://docs.poolmanager2.path-o-logical.com/code-reference/spawnpool
 

你可能感兴趣的:(Path-O-LOGIC Keynote)