|
2D Shooter Bullet and Weapon System for Unity 3.0.0
|
Main pooling singleton script for bullet / object pool usage. More...
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 () |
Static Public Member Functions | |
| static int | GetActiveBulletCount () |
| Count of active (on-screen) bullets from all bullet pools. O(n) over pooled bullets; safe to call ~1/sec. | |
Public Attributes | |
| GameObject | standardHorizonalBulletPrefab |
| GameObject | sphereBulletPrefab |
| GameObject | sparkPrefab |
| GameObject | bloodPrefab |
| GameObject | beam1Prefab |
| GameObject | beam2Prefab |
| GameObject | beam3Prefab |
| GameObject | beam4Prefab |
| GameObject | beam5Prefab |
| GameObject | beam6Prefab |
| int | numStandardHorizonalBulletsToSpawn |
| int | numSphereBulletsToSpawn |
| int | numSparksToSpawn |
| int | numBloodParticleToSpawn |
| int | numTurretBulletsToSpawn |
| int | numBeam1BulletsToSpawn |
| int | numBeam2BulletsToSpawn |
| int | numBeam3BulletsToSpawn |
| int | numBeam4BulletsToSpawn |
| int | numBeam5BulletsToSpawn |
| int | numBeam6BulletsToSpawn |
| 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. | |
Static Public Attributes | |
| static ObjectPoolManager | instance |
| static List< GameObject > | standardHorizontalBulletObjectPool |
| static List< GameObject > | sphereBulletObjectPool |
| static List< GameObject > | sparkObjectPool |
| static List< GameObject > | bloodObjectPool |
| static List< GameObject > | turretBulletObjectPool |
| static List< GameObject > | beam1Pool |
| static List< GameObject > | beam2Pool |
| static List< GameObject > | beam3Pool |
| static List< GameObject > | beam4Pool |
| static List< GameObject > | beam5Pool |
| static List< GameObject > | beam6Pool |
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.
|
static |
Count of active (on-screen) bullets from all bullet pools. O(n) over pooled bullets; safe to call ~1/sec.
| GameObject ObjectPoolManager.GetUsableBeam1Bullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableBeam2Bullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableBeam3Bullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableBeam4Bullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableBeam5Bullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableBeam6Bullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableBloodSplatterParticleEffect | ( | ) |
| GameObject ObjectPoolManager.GetUsableSparkParticle | ( | ) |
| GameObject ObjectPoolManager.GetUsableSphereBullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableStandardHorizontalBullet | ( | ) |
| GameObject ObjectPoolManager.GetUsableTurretBullet | ( | ) |
|
static |
| GameObject ObjectPoolManager.beam1Prefab |
|
static |
| GameObject ObjectPoolManager.beam2Prefab |
|
static |
| GameObject ObjectPoolManager.beam3Prefab |
|
static |
| GameObject ObjectPoolManager.beam4Prefab |
|
static |
| GameObject ObjectPoolManager.beam5Prefab |
|
static |
| GameObject ObjectPoolManager.beam6Prefab |
|
static |
| GameObject ObjectPoolManager.bloodPrefab |
|
static |
| int ObjectPoolManager.numBeam1BulletsToSpawn |
| int ObjectPoolManager.numBeam2BulletsToSpawn |
| int ObjectPoolManager.numBeam3BulletsToSpawn |
| int ObjectPoolManager.numBeam4BulletsToSpawn |
| int ObjectPoolManager.numBeam5BulletsToSpawn |
| int ObjectPoolManager.numBeam6BulletsToSpawn |
| int ObjectPoolManager.numBloodParticleToSpawn |
| int ObjectPoolManager.numSparksToSpawn |
| int ObjectPoolManager.numSphereBulletsToSpawn |
| int ObjectPoolManager.numStandardHorizonalBulletsToSpawn |
| int ObjectPoolManager.numTurretBulletsToSpawn |
|
static |
| GameObject ObjectPoolManager.sparkPrefab |
|
static |
| GameObject ObjectPoolManager.sphereBulletPrefab |
| GameObject ObjectPoolManager.standardHorizonalBulletPrefab |
|
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.
|
static |