2DShooterWeaponSystem  1.9.0
ObjectPoolManager Class Reference

Main pooling singleton script for bullet / object pool usage. More...

Inheritance diagram for ObjectPoolManager:

Public Member Functions

GameObject GetUsableStandardHorizontalBullet ()
 
GameObject GetUsableSphereBullet ()
 
GameObject GetUsableTurretBullet ()
 
GameObject GetUsableBeam1Bullet ()
 
GameObject GetUsableBeam2Bullet ()
 
GameObject GetUsableBeam3Bullet ()
 
GameObject GetUsableBeam4Bullet ()
 
GameObject GetUsableBeam5Bullet ()
 
GameObject GetUsableBeam6Bullet ()
 
GameObject GetUsableSparkParticle ()
 
GameObject GetUsableBloodSplatterParticleEffect ()
 

Public Attributes

GameObject standardHorizonalBulletPrefab
 
int numStandardHorizonalBulletsToSpawn
 
bool tagAsTurretBullets
 Only really used for demo scenes - bullets can be made to use the layer for turret bullets, this is so that the demo scene player can have his/her own bullets that apply damage to the turrets, and the turrets can have their own bullets. More...
 

Static Public Attributes

static ObjectPoolManager instance
 
static List< GameObject > standardHorizontalBulletObjectPool
 

Detailed Description

Main pooling singleton script for bullet / object pool usage.

The WeaponSystem will use this to retrieve re-usable bullets from defined bullet pools, allowing for faster performance when firing lots of bullets.

Member Function Documentation

◆ GetUsableBeam1Bullet()

GameObject ObjectPoolManager.GetUsableBeam1Bullet ( )

◆ GetUsableBeam2Bullet()

GameObject ObjectPoolManager.GetUsableBeam2Bullet ( )

◆ GetUsableBeam3Bullet()

GameObject ObjectPoolManager.GetUsableBeam3Bullet ( )

◆ GetUsableBeam4Bullet()

GameObject ObjectPoolManager.GetUsableBeam4Bullet ( )

◆ GetUsableBeam5Bullet()

GameObject ObjectPoolManager.GetUsableBeam5Bullet ( )

◆ GetUsableBeam6Bullet()

GameObject ObjectPoolManager.GetUsableBeam6Bullet ( )

◆ GetUsableBloodSplatterParticleEffect()

GameObject ObjectPoolManager.GetUsableBloodSplatterParticleEffect ( )

◆ GetUsableSparkParticle()

GameObject ObjectPoolManager.GetUsableSparkParticle ( )

◆ GetUsableSphereBullet()

GameObject ObjectPoolManager.GetUsableSphereBullet ( )

◆ GetUsableStandardHorizontalBullet()

GameObject ObjectPoolManager.GetUsableStandardHorizontalBullet ( )

◆ GetUsableTurretBullet()

GameObject ObjectPoolManager.GetUsableTurretBullet ( )

Member Data Documentation

◆ instance

ObjectPoolManager ObjectPoolManager.instance
static

◆ numStandardHorizonalBulletsToSpawn

int ObjectPoolManager.numStandardHorizonalBulletsToSpawn

◆ standardHorizonalBulletPrefab

GameObject ObjectPoolManager.standardHorizonalBulletPrefab

◆ standardHorizontalBulletObjectPool

List<GameObject> ObjectPoolManager.standardHorizontalBulletObjectPool
static

◆ tagAsTurretBullets

bool ObjectPoolManager.tagAsTurretBullets

Only really used for demo scenes - bullets can be made to use the layer for turret bullets, this is so that the demo scene player can have his/her own bullets that apply damage to the turrets, and the turrets can have their own bullets.


The documentation for this class was generated from the following file: