C# Class QuickPool.PoolsManager

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: minimalgeek/TapBand Class Usage Examples

Public Properties

Property Type Description
debugMessages bool
pools List
spawnDespawnMessages bool

Public Methods

Method Description
CreatePool ( GameObject prefabs ) : Pool
Despawn ( GameObject target ) : void

Hides object

DespawnAll ( ) : void
RegisterPool ( Pool target ) : void
RemovePool ( string name ) : void
Spawn ( GameObject prefab, Vector3 pos, Quaternion rot ) : GameObject

Spawns an object from specified pool

Spawn ( string name, Vector3 pos, Quaternion rot ) : GameObject

Spawns an object from specified pool

this ( string name ) : Pool

Private Methods

Method Description
Start ( ) : void

Initialization

Method Details

CreatePool() public static method

public static CreatePool ( GameObject prefabs ) : Pool
prefabs UnityEngine.GameObject
return Pool

Despawn() public static method

Hides object
public static Despawn ( GameObject target ) : void
target UnityEngine.GameObject Target
return void

DespawnAll() public static method

public static DespawnAll ( ) : void
return void

RegisterPool() public static method

public static RegisterPool ( Pool target ) : void
target Pool
return void

RemovePool() public static method

public static RemovePool ( string name ) : void
name string
return void

Spawn() public static method

Spawns an object from specified pool
public static Spawn ( GameObject prefab, Vector3 pos, Quaternion rot ) : GameObject
prefab UnityEngine.GameObject Pool name
pos UnityEngine.Vector3 Target position
rot UnityEngine.Quaternion Target rotation
return UnityEngine.GameObject

Spawn() public static method

Spawns an object from specified pool
public static Spawn ( string name, Vector3 pos, Quaternion rot ) : GameObject
name string Pool name
pos UnityEngine.Vector3 Target position
rot UnityEngine.Quaternion Target rotation
return UnityEngine.GameObject

this() public method

public this ( string name ) : Pool
name string
return Pool

Property Details

debugMessages public_oe property

public bool debugMessages
return bool

pools public_oe property

public List pools
return List

spawnDespawnMessages public_oe property

public bool spawnDespawnMessages
return bool