2D Shooter Bullet and Weapon System for Unity  1.4.1
The 2D Shooter Bullet and Weapon System asset provides you with a highly customisable bullet pattern and weapon system, custom weapon configuration editor with inventory manager, along with a bullet pooling manager which is simple to drop into your Unity game or project and start using right away.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
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 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

GameObject ObjectPoolManager.GetUsableBeam1Bullet ( )
GameObject ObjectPoolManager.GetUsableBeam2Bullet ( )
GameObject ObjectPoolManager.GetUsableBeam3Bullet ( )
GameObject ObjectPoolManager.GetUsableBloodSplatterParticleEffect ( )
GameObject ObjectPoolManager.GetUsableSparkParticle ( )
GameObject ObjectPoolManager.GetUsableSphereBullet ( )
GameObject ObjectPoolManager.GetUsableStandardHorizontalBullet ( )
GameObject ObjectPoolManager.GetUsableTurretBullet ( )

Member Data Documentation

ObjectPoolManager ObjectPoolManager.instance
static
int ObjectPoolManager.numStandardHorizonalBulletsToSpawn
GameObject ObjectPoolManager.standardHorizonalBulletPrefab
List<GameObject> ObjectPoolManager.standardHorizontalBulletObjectPool
static
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: