C# Class BulletPool, Time-Pigs-and-The-Ham-of-Destiny

显示文件 Open project: Abysice/Time-Pigs-and-The-Ham-of-Destiny Class Usage Examples

Public Methods

Method Description
ClearPool ( ) : void
GetBullet ( ) : GameObject
GetPrefabType ( ) : GameObject
InitializeBulletPool ( int size, GameObject prefab ) : void
ReactivateBullet ( GameObject obj ) : void
ReturnBulletToPool ( GameObject obj ) : void

Method Details

ClearPool() public method

public ClearPool ( ) : void
return void

GetBullet() public method

public GetBullet ( ) : GameObject
return GameObject

GetPrefabType() public method

public GetPrefabType ( ) : GameObject
return GameObject

InitializeBulletPool() public method

public InitializeBulletPool ( int size, GameObject prefab ) : void
size int
prefab GameObject
return void

ReactivateBullet() public method

public ReactivateBullet ( GameObject obj ) : void
obj GameObject
return void

ReturnBulletToPool() public method

public ReturnBulletToPool ( GameObject obj ) : void
obj GameObject
return void