C# Class PrefabPool, UnityFramework

用于取Prefab的类 ,寄生于PrefabManager Maintaince Logs: 2014-11-27 WP Initial version: Added member
Datei anzeigen Open project: meta-42/uEasyKit Class Usage Examples

Public Methods

Method Description
AutoReleaseParticle ( string prefabName, ParticleSystem particle, PrefabPoolAgent, agent ) : IEnumerator
ClearAllPool ( ) : void
ClearPool ( string prefabName ) : void
Despawn ( string prefabName, PrefabPoolAgent, agent ) : void
GetPool ( string prefabName ) : ObjectPool
Init ( ) : void
Spawn ( string prefabName, UnityAction callback ) : void

Private Methods

Method Description
PrefabPool ( ) : System.Collections

Method Details

AutoReleaseParticle() public method

public AutoReleaseParticle ( string prefabName, ParticleSystem particle, PrefabPoolAgent, agent ) : IEnumerator
prefabName string
particle ParticleSystem
agent PrefabPoolAgent,
return IEnumerator

ClearAllPool() public method

public ClearAllPool ( ) : void
return void

ClearPool() public method

public ClearPool ( string prefabName ) : void
prefabName string
return void

Despawn() public method

public Despawn ( string prefabName, PrefabPoolAgent, agent ) : void
prefabName string
agent PrefabPoolAgent,
return void

GetPool() public method

public GetPool ( string prefabName ) : ObjectPool
prefabName string
return ObjectPool

Init() public method

public Init ( ) : void
return void

Spawn() public method

public Spawn ( string prefabName, UnityAction callback ) : void
prefabName string
callback UnityAction
return void